Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timing of Build Phases




Am 25.01.2008 um 03:08 schrieb David Dunham:

I think I'm running into a race condition with building my app.

I've got some folder references that end up being copied into the Resources folder of the application bundle. However, Xcode doesn't know when files in those folders change, so it doesn't update them. In an attempt to work around this, I've added a Run Script build phase that deletes them. This is the first build phase. But it seems like sometimes Xcode doesn't notice that a folder needs replacing.

Is there a way to synchronize this? Alternately, is there a better way to get Xcode to update bundle resource folders that get copied?

I had this issue in a couple of projects and my solution was to factor out the resource file/folder generation into a separate target and make the main target depend on this new target.


HTH
</jum>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Timing of Build Phases (From: David Dunham <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.