xcode4
How to include a bundle in main project xcode 4.1
After long investigation, it came up there’s no easy way of doing this. The B.bundle is never visible to A project, and there’s no settings in workspace to change that. At this point there are three solutions: Include the bundle manually from “copy resources->other”, I started with this, but everytime there’s a change you have … Read more
Trackpad gesture to switch to header/source
This is the correct and best answer. It works. It is posted by “@Buyin” above. Another individual commented that it doesn’t work. He is wrong. It works, I’ve confirmed it. It restores the three finger vertical swipe to switch between interface and implementation files (.h and .m) in xCode in Lion. From your terminal: Change … Read more
How to ‘show current line’ in in Xcode 4?
Its not removed..Goto X-Code–> Preferences –> Text Editing –> Check Line Numbers..
Adding files to separate targets in Xcode 4
Select the project file in the document explorer. On the Right margin of the Xcode window make sure to display the right drawer view if it isn’t already there (it usually has Object library and Quick Help). In the top margin, click on the icon that looks like a document (rather than the one with … Read more
How do I run a C++ program in Xcode 4?
Launch XCode In the “Choose template” box, pick Mac OS X, then Command Line Tool. Press Next Give your project a name, select C++ as the type You should see a new project with main.cpp press the Run button At the bottom of the screen, under All Output you should see: Hello, World! Program ended … Read more
How do you get implicit dependencies to work with workspaces in Xcode 4?
I have just spent the best part of two days building and rebuilding our project, struggling with just this very issue. Whilst I now have a project that builds and links correctly AND has working codesense I am not 100% happy with one of the steps as it seems to be a bit of a … Read more
Xcode project how to detect target programmatically or how to use env vars
Never mind… figured out that it is in “Schemes” that you set this. For example if you want TARGET=TEST to be available during Test and TARGET=RUN to show during run, just set that in your Scheme > Environment Variables > Name/Value. Then from your app you can do: [[[NSProcessInfo processInfo] environment] objectForKey:@”TARGET”] Using build settings … Read more