Re: How to put files in app bundle?
Re: How to put files in app bundle?
- Subject: Re: How to put files in app bundle?
- From: Mark Dawson <email@hidden>
- Date: Mon, 7 Feb 2005 12:15:05 -0800
I've added the build phase; however, XCode (1.5) won't allow me to add files to the build phase. If I try to drag files to it, the "CopyFiles" highlights (and the disclosure triangle turns down), but the drag is rejected. If I select "CopyFiles", then "Add files to project", the files (and folders) I want to add are grayed out.
Is there something I need to do to that makes these files valid? (I know in CodeWarrior, you had to tell CodeWarrior that these were valid types, but I don't seem to see anything like that when editing the target…).
Also, can I just add a "SharedSupport" folder, and the build phase will copy the folder and its contents in? Or do I have to add a sub copy phase, name the folder "SharedSupport", then explicitly add all the files in that folder?
Thanks!
Mark
On Feb 2, 2005, at 8:49 AM, Mark Dawson wrote:
When I build my app bundle, I'd like to put some files in the /Contents/Resources folder, along with create a /Contents/SharedSupport folder, and copy files into that folder. I didn't notice a "copy" build phase. Do I need to use the shell scripts to do what I want? Is there some other recommended way?
Your target probably doesn't have a Copy Files build phase by default because you're not copying any files yet. Select the target, choose New Build Phase â–¶ New Copy Files Build Phase from the Project menu, then enter the path into which you want the files copied. (To copy files into a custom folder in your app bundle, choose Destination: Wrapper and Contents/SharedSupport/ as the subpath.) Then you can drag files from your project into that build phase.
Chris _______________________________________________
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
_______________________________________________
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