Want to use Xcode 4 for everything, how to add a folder to the project navigator?

I would like to move the editing of my web editor to Xcode 4 (currently using textmate). I have a couple of simple questions that clearly have no experience at my end.

  • In Xcode Project Navigator, how do I add a folder to a specified directory tree? I am currently adding via terminal and doing File -> Add Files

Is there a way to tell Xcode to see the file system as a file system, and not as links?

less likely:

  • Is there a way to call the console in the context of the folder in the project navigator (I would like to be able to run grep again again, a small part or something like that)?

thanks

+4
source share
2 answers

As far as I know, Xcode will not mirror the file system as an Xcode tree (someone correct me, I'm wrong). The desire to have an identical structure is a pretty definite job. I use to first put files hierarchically in the file system, then I mimic the same structure in Xcode. This requires some attention, because Xcode 4.1 does not always write new classes to the place you told it to β€” they may prefer to land at the highest level of the Xcode project.

I had similar thoughts and the flow started, it may be useful for further reading.

Your second question: sorry, I can not help you.

+1
source

I can answer the first question. Adding a folder to a project is similar to adding individual files. Choose File> Add Files To Xcode. When you add the file folder to the project, you should see something like the following screenshot:

enter image description here

Create groups if you need to access files in Xcode, for example, add a folder from source code files. Create links to folders if you don’t need to access files in Xcode, for example, add a folder of audio files.

You can also add folders to the project navigator by selecting a file or folder in the project navigator, right-clicking and selecting New Group.

+6
source

All Articles