How i can add a framework to XCode 4.3.2 project ?
Because a SDK directories inside a XCode.app and i can't add a framework by "Add files to ..."
Updated:
For this action you can do a this steps:
Click on Project at left table
Click on "Build Phases" on right table
Click on "Link Binary With Libraries"
Click "+"
Find needing framework and click "Add"
And your needing framework in your project.
Add the Framework Select the app target and the General tab. Scroll down to the Embedded Binaries section and click on the + button. 👉 Xcode shows a list of frameworks. Select the first BFWControls.
Select the target for where you want to add frameworks in the project settings editor. 3. Select the “Build Phases” tab, and click the small triangle next to “Link Binary With Libraries” to view all of the frameworks in your application. 4.To Add frameworks, click the “+” below the list of frameworks.
In Xcode selector your framework target and in build settings search for linking and you will se this setting there. We created a build script to bump this version number every time we build. Xcode caches the frameworks and uses the cache if possible. That's why you need to change this number.
Following are steps-
1) Click project in Navigator area
2) Select 'TARGETS' tab
3) Click on 'Build Phases'
4) Select 'Link Binary With Libraries'
Then you can see '+' button at the bottom in the area. You can now add the framework that you want.
Although rishi's answer works great, this doesn't add the framework to the Project Navigator's "Frameworks" folder.
Another method is to right click any of your existing frameworks in the Project Navigator's "Frameworks" folder, select "Show in Finder," then just drag and drop the framework you want to add.
When it asks how you want to add the framework, make sure you add it to your target, which will then add it inside the "Link With Libraries" section of Build Phases.
UPDATE:
This is merely a convenience method for adding a framework for those that are looking for the framework to show up in their "Frameworks" folder.
Read comments about not selecting the "Copy to group's destination folder" checkbox, because it will unnecessarily add it to the root of your project folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With