Reputation: 15997
I can't find the good old "Add existing frameworks" option. How do I do this?
We're talking about Xcode 4 DP2 (in the context of iPhone development, as far as it matters...).
Upvotes: 1480
Views: 356655
Reputation: 34341
Xcode add a framework
Starting Xcode v11 you should use
<Project settings> -> <App Target> -> Frameworks, Libraries, and Embedded Content
//or
<Project settings> -> <Framework Target> -> Frameworks and Libraries
[Xcode pre-v11. Embedded Binaries vs Linked Frameworks and Libraries]
Also do not forget to check Library Search Paths
or Framework Search Paths
. I would recommend you to use drag-and-drop[About]
Upvotes: 1
Reputation: 833
The frameworks directory is as follows in my computer:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks
Not the directory
/Developer/SDKs/MacOSXversion.sdk/System/Library/Frameworks
Upvotes: 11
Reputation: 2139
Follow the below five steps to add a framework in your project.
Here is the official Apple page.
Upvotes: 22
Reputation: 626
In Project:
Upvotes: 8
Reputation: 481
I just added the existing framework folder manually into the project navigator. It worked for me.
Upvotes: 44
Reputation: 1846
Another easy way to do it so that it is referenced in the project folder you want, like "Frameworks", is to:
It will appear in both the project navigator where you want it, as well as in the "Link Binary With Libraries" area of the "Build Phases" pane of your target.
Upvotes: 17
Reputation: 119917
Just drag it into the Frameworks, Libraries, and Embedded Content
of the General
section of the Target
:
Note that Xcode 11 and 10 have a very similar flow too.
Upvotes: 3
Reputation: 1415
In the project navigator, select your project.
Select your target.
Select the "Build Phases" tab.
expander. Click the + button.
Select your framework.
(optional) Drag and drop the added framework to the "Frameworks" group.
Upvotes: 3
Reputation: 51
Upvotes: 1755