Skip to content

Commit

Permalink
Fix issue when config is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Sep 30, 2024
1 parent fa8ddfa commit 49e4205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XCode/PBXFileReference.m
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ - (NSArray *) substituteSearchPaths: (NSArray *)array
NSDictionary *plistFile = [context config];
NSArray *headerPaths = [plistFile objectForKey: @"headerPaths"];

XCBuildConfiguration *config = [[list buildConfigurations] objectAtIndex: 0];
XCBuildConfiguration *config = [[list buildConfigurations] count] > 0 ? [[list buildConfigurations] objectAtIndex: 0] : nil;
NSDictionary *buildSettings = [config buildSettings];
NSMutableArray *headers = [buildSettings objectForKey: @"HEADER_SEARCH_PATHS"];

Expand Down

0 comments on commit 49e4205

Please sign in to comment.