Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the resources folder for my project in Xcode 4?

Tags:

ios

xcode4

iphone

When I create a new project in Xcode 4 it does not create the resources folder like Xcode 3 used to do. Is there a setting in Xcode 4 to make this work?

like image 556
ronaldus_magnus Avatar asked Mar 17 '11 18:03

ronaldus_magnus


People also ask

Where are resources Xcode?

Select the app target from the list of targets on the left side of the project editor. Click the Build Phases button at the top of the project editosr. Click the disclosure triangle next to the Copy Bundle Resources build phase to see the files in the build phase.

How do I add resources to my Xcode project?

Just drag the resource file (from a finder window) into your project files area (left side) and drop in supporting files. Once you drop, a dialog will prompt you which targets to add it for. Select all that are appropriate. Thats it.

Where is my Xcode project file?

Overview. The Project navigator displays your project's files and lets you open, add, delete, and rearrange those files. To open the Project navigator, at the top of your project window's navigator area, click the icon that resembles a file folder.

How do I show hidden files in Xcode?

Press and hold the ⌘ + shift and . keys at the same time. Then you can switch to view hidden/non-hidden files.


1 Answers

As badcat indicates in his comments, the Resources folder was merely a group within the project template. To create your own Resources group, either right-click on the project explorer view and choose New Group, or go to the menu option File | New | New Group.

If you want to make sure that items which should be resources are copied into the correct location in your application bundle, you can click on the name of your project in the project explorer on the left of the screen and go to the Build Phases tab. You can expand the Copy Bundle Resources build phase (or whatever it's called in your project) and see the files that will be copied over. If something is missing, you can drag it into that list from the project explorer.

like image 86
Brad Larson Avatar answered Sep 21 '22 03:09

Brad Larson