Xcode resource groups and folder references when building for iPhone
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
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
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.
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
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| installing app via xcode to iphone 4s, cause iphone to freeze while calling or receiv | sefiroths | 3 | 3,352 |
Feb 11, 2012 12:10 PM Last Post: sefiroths |
|
| Xcode 4 Build Failure on iPhone target | SparkyNZ | 2 | 5,986 |
Apr 7, 2011 02:48 AM Last Post: SparkyNZ |
|
| Updating the iPhone SDK/Xcode | the_wandering_monster | 3 | 3,162 |
Dec 12, 2009 06:54 PM Last Post: Gillissie |
|
| Why my references(&) are not compiled on the iphone (xcode)? | riruilo | 7 | 4,110 |
Oct 12, 2009 08:13 PM Last Post: akb825 |
|
| How can I avoid XCODE transform my PNGs when moved to iPhone? | riruilo | 7 | 4,950 |
Apr 24, 2009 12:02 AM Last Post: smallstepforman |
|

