adjust to xcode .app file reuse

This commit is contained in:
Hedden, Kyle Matthew 2023-12-01 17:41:44 -05:00
parent f64ba3aff4
commit 293c3bf864

View File

@ -59,7 +59,7 @@
- (NSDictionary *) getHardCodedResponseForPageType:(NSString *)pageType { - (NSDictionary *) getHardCodedResponseForPageType:(NSString *)pageType {
NSError *error; NSError *error;
NSString *filePath = [[NSBundle mainBundle] pathForResource:pageType ofType:@"json"]; NSString *filePath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"JSON/%@", pageType] ofType:@"json"];
if (filePath) { if (filePath) {
return [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:filePath] options:NSJSONReadingMutableContainers error:&error]; return [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:filePath] options:NSJSONReadingMutableContainers error:&error];
} }