Best way to copy files into package
Best way to copy files into package
- Subject: Best way to copy files into package
- From: David Dunham <email@hidden>
- Date: Fri, 18 Jun 2004 13:54:39 -0700
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.
--
David Dunham Macintosh Game Developer GameHouse Studios
email@hidden 206 442 5881 x22 http://www.gamehouse.com
"They said it couldn't be done but sometimes it doesn't
work out that way." -- Casey Stengel
_______________________________________________
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.