Archive for the ‘XCode’ Category
Creating a “Group” in XCode doesn’t create a real Directory within your app Bundle.
You need to import the directory into your app using the following method:
Create a Directory on your Mac.
Select to Add Existing Files to your project
Select the Directory you want to import
In the pop-up window make sure you select “Copy items into destination group’s folder” and “Create Folder References for any added folders”
The Directory should appear blue instead of yellow.
Now try your code:
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"w1" ofType:@"geo" inDirectory:@"part1"];