Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How add Framework to project on Xcode 4.3.2 [duplicate]

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:

  1. Click on Project at left table

  2. Click on "Build Phases" on right table

  3. Click on "Link Binary With Libraries"

  4. Click "+"

  5. Find needing framework and click "Add"

And your needing framework in your project.

like image 268
CReaTuS Avatar asked May 11 '12 06:05

CReaTuS


People also ask

How do you insert a framework?

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.

How do I add a framework to a swift project?

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.

How do I update framework in Xcode?

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.


2 Answers

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.

like image 79
rishi Avatar answered Oct 21 '22 04:10

rishi


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.

like image 4
whyoz Avatar answered Oct 21 '22 05:10

whyoz