Xcode resource groups and folder references when building for iPhone

Member
Posts: 320
Joined: 2003.06
Post: #1
This is just a public service announcement really. While developing for the mac, I have had problems with the way that Xcode deals with directories of resources, exactly like this iDevGames thread, this iDevApps thread and probably a bunch of others. OneSadCookie gave a good solution to this problem for the Mac, which I cannot find right now, maybe you'll post it?

But anyway, the same problem exists on the iPhone, only it's harder to work around. Basically both groups and folder references suck, and eventually you have to use folder references, but eventually they will cause you pain.

So if you've got to the stage where you need to use folder references in Xcode, and are building for the iPhone, and files aren't updating when you change them, it's probably time to give this a read: Xcode resource groups and folder references when building for iPhone

Chopper, iSight Screensavers, DuckDuckDuck: http://majicjungle.com
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
I think it may have been posted here before... but it was a script to run as a "shell script build phase" that symlink'd resources for debug builds, and copied them (using tar, IIRC) for release builds. I think it's probably easier just to run a simple rsync command instead.
Quote this message in a reply
Member
Posts: 320
Joined: 2003.06
Post: #3
It turns out that all you need is to 'touch' any included folder references. Much easier than I had originally thought.

Chopper, iSight Screensavers, DuckDuckDuck: http://majicjungle.com
Quote this message in a reply
Post Reply