|Mar 22, 2008, 10:09 AM||#1|
adding resources in xcode with folders
I have a a bunch of resources organized in folders. Eg:
[Cars] [Red] front.jpg side.jpg [Green] front.jpg side.jpg
When I add the [Cars] folder as an existing file to the Resources, xcode copies the jpegs to the project root. When it builds the target, it copies the jpegs to the build root instead of the Resources folder. Also, the folder structure is not recreated. So obviously I'm doing something wrong....
How can I add this folder structure to my resources?
|Mar 22, 2008, 10:16 AM||#2|
Just use Add folder or group or whatever it is called and do it yourself.
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
|Mar 22, 2008, 02:54 PM||#3|
Add a new "Copy Files" Build Phase to the target you are building. Add a new build phase using the Build menu in Xcode.
Then drag and drop the Resource folder or files in the project file list on the left side of the window to the "Copy Files" build phase.
To set which folder the files are copied to you select the "Copy Files" build phase in the target list and type Command-I (Get Info). In the "Destination" popup menu you can select which sub-folder the files will be copied to.
Sample screenshot: http://att.macrumors.com/attachment....1&d=1205431384
Obama is a true statesman whose experience as a state senator, half-term US Senator & guest lecturer in a Constitutional Law class has fully prepared him to take control of our nuclear arsenal.-Me
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|adding NSNumbers in xcode||ghousemd||iPhone/iPad Programming||2||Aug 26, 2011 05:56 AM|
|changing Base SDK in xcode started giving errors||hrishidev||Mac Programming||4||Apr 21, 2011 01:29 AM|
|Not able to write to file in Xcode with C++||kristianmoss||Mac Programming||8||Mar 17, 2011 04:50 PM|
|Help with adding array? into xcode||fun173||iPhone/iPad Programming||6||Oct 20, 2010 12:05 AM|
|Strange error when adding Frameworks in XCode||SergioQ||iPhone/iPad Programming||9||Oct 22, 2009 10:38 PM|
All times are GMT -5. The time now is 08:56 PM.