Sign in to follow this  
fpsgamer

XCode Help For a Visual Studio User...

Recommended Posts

In visual studio one is able to have several "project files" within a single "Solution File". Is similar functionality available in Xcode? If so is there a guide a available on how to do this?

Share this post


Link to post
Share on other sites
Yes, in Xcode you can create multiple "targets". One way you can add a new target is by right clicking "Targets" in the Groups & Files panel, and selecting "Add...". You can specify, for each source file, which targets it belongs to (this choice comes up when you add a new file, and you can change it later by right click->Get Info->Targets). You can change the currently active target with a pulldown in the upper-left corner of the Project window.

Another way you can organize stuff is by creating multiple Xcode project files. You can include a seperate Xcodeproj by doing Add->Existing Framework. Xcode will be smart about these- when you do a build, Xcode will make sure to also build any out-of-date files in included projects.

Share this post


Link to post
Share on other sites
Quote:
Original post by pinacolada
Another way you can organize stuff is by creating multiple Xcode project files. You can include a seperate Xcodeproj by doing Add->Existing Framework. Xcode will be smart about these- when you do a build, Xcode will make sure to also build any out-of-date files in included projects.


I added several XCode projects as "existing frameworks" to a single project which builds an executable.

However, after hours of experimenting, I can't seem to get the "main" XCode projects to automatically rebuild out of date, or missing "sub-projects" which were added as "existing frameworks".

Am I missing something?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this