• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode not copying modified files to Resources folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode not copying modified files to Resources folder


  • Subject: Re: Xcode not copying modified files to Resources folder
  • From: Andrew Pontious <email@hidden>
  • Date: Fri, 20 Feb 2009 14:51:53 -0800


On Feb 15, 2009, at 4:07 PM, Sir Rattykins wrote:

using the latest public build of Xcode, latest OS.

I have a "Data" folder that has been added to the Resources group using the "Copy as Required" and "Create Folder References" options.

The folder contains many lua script files, images, sounds, each within its own folder hierarchy.

I can confirm that Xcode automatically created a copy build phase.

When I build the project, a copy of "Data" is indeed copied over to the application bundle. All is well.

However, when I edit a file in the original "Data" folder, Xcode does NOT detect that a file has been modified. Instead, if I hit "Build and Go", Xcode merely does the normal compiling and linking, and then the application is launched, complete with the old, unmodified data that had already been copied to the Resources folder.

Can anyone shed some light on this? How do I get Xcode to recognise that a file has been modified and copy the new version over to the bundle?

It's a known issue that Xcode does not check the modification date of everything inside a folder when checking to see whether it should copy a new version of the folder into the executable.


Your best bet at the moment is to use a shell script phase instead of a copy phase.

-- Andrew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Xcode not copying modified files to Resources folder
      • From: Peter N Lewis <email@hidden>
    • Re: Xcode not copying modified files to Resources folder
      • From: Joar Wingfors <email@hidden>
References: 
 >Xcode not copying modified files to Resources folder (From: Sir Rattykins <email@hidden>)

  • Prev by Date: Re: Spurious no-location-found warning
  • Next by Date: Re: Xcode not copying modified files to Resources folder
  • Previous by thread: Xcode not copying modified files to Resources folder
  • Next by thread: Re: Xcode not copying modified files to Resources folder
  • Index(es):
    • Date
    • Thread