Archive for the ‘XCode’ Category

javascript: OAuth with iOS, PhoneGap, and Chrome Extension

Friday, June 10th, 2011

Xcode: adding folder path to access bundle files (iOS)

Tuesday, August 24th, 2010

Source: BenODwyer

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”

Hit “Add”

Your done!

The Directory should appear blue instead of yellow.

Now try your code:


NSString *filePath = [[NSBundle mainBundle] pathForResource:@"w1" ofType:@"geo" inDirectory:@"part1"];