Showing posts with label XCode 4. Show all posts
Showing posts with label XCode 4. Show all posts

Monday, April 4, 2011

How to add existing frameworks in XCode 4?

In the older version of XCode this was easily done by right-clicking the Frameworks group and selecting "Add existing".

In XCode 4 however, they decided to put it in a less easily accessible location.
So here's how to get there!

1. In Project Navigator, select the project Name.
2. Next, select your project's target.
3. Select the Build Phases tab.
4. Expand the "Link Binaries with Library" tab.
5. Select the "+ button to add an existing framework.

The following image sums it all up.

Adding existing frameworks in xcode 4

Friday, April 1, 2011

Where is the XCode 4 build directory?

In all previous versions, XCode used to create a build directory inside the project folder and the executables were saved in that location.

However, XCode 4 changed all that.
Infact, I spent quite sometime searching for my executables.
XCode 4 uses the derived data location for storing your builds by default.

Just click on the XCode menu on the top bar, and select Preferences -> Locations tab.
Here under build location, you can see the default setting selected as "place build products in derived data location (recommended)".

And if you check the "Derived Data Location" section of this tab you will see the default location is /Users/..../Library/Developer/XCode/DerivedData.
You will see a small arrow next to this path and clicking on it takes you directly to this location and voila there is your build directory!