Re: Best way to copy files into package
Re: Best way to copy files into package
- Subject: Re: Best way to copy files into package
- From: Ricky Sharp <email@hidden>
- Date: Fri, 18 Jun 2004 19:27:12 -0500
On Jun 18, 2004, at 3:54 PM, David Dunham wrote:
I'm porting a game, and would like to copy a number of files to
subfolders inside Contents/Resources (since the code is looking for
files inside folders).
What's the best way to do this (with Xcode 1.2)? I tried a Copy Files
build phase, but even though I have "Where" set to "Resources" and
"Sub-" set to "res", all the files are copied into Contents/Resources
as well as Contents/Resources/res like I need.
I could use a Shell Script build phase, but I didn't see any
documentation on writing the script (CodeWarrior has a bunch of
special variables so it's easy to copy from the source directory to a
directory inside the bundle).
I think I'd prefer a script, since I could copy the entire contents of
a folder, while the copy phase looks like it only handles files I've
remembered to add to the project.
I had that same problem as well (where you'd get duplicates in both
Resources/ and the sub folder.
Don't know what triggered it, but I removed all the files from the
project, removed by Copy Files phase and started over.
To recreate the phase, I believe the order in which I did things was
the following:
(1) Create new Copy Files Phase and supplied the subfolder name in its
properties
(2) Drag my folder of files from Finder into the project. I put that
folder as a sibling of the Resources folder (i.e. directly under the
root project item).
(3) Selected all files within my folder and dragged to the Copy Files
target item.
I haven't had a problem.
Perhaps the problem comes into play where you change the subfolder name
in the Copy Files phase properties after you drag the files into it.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.