We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 176d0a6 commit 7876e83Copy full SHA for 7876e83
BuildSettingExtractor/BuildSettingInfoSource.m
@@ -178,6 +178,10 @@ - (NSDictionary *)xcspecFileBuildSettingInfoForPath:(NSString *)path {
178
NSMutableDictionary *buildSettingInfo = [NSMutableDictionary dictionary];
179
NSError *error = nil;
180
NSData *plistData = [[NSData alloc] initWithContentsOfURL:fileURL];
181
+ // If we can't read the file, behave like +dictionaryWithContentsOfFile: and return nil
182
+ if (!plistData) {
183
+ return nil;
184
+ }
185
id plist = [NSPropertyListSerialization propertyListWithData:plistData options:NSPropertyListImmutable format:nil error:&error];
186
if ([plist isKindOfClass:[NSArray class]]) {
187
NSArray *specs = (NSArray *)plist;
0 commit comments