Is adding iOS frameworks required?

Do I need to add iOS frameworks that I use to the "Link binary with Library" list? A framework I'm using was missing from the list I didn't notice any difference when building or running my project.


Another think I noticed is that adding a iOS framework to the list doesn't list it under the Project Naviguator (The left pane in Xcode).


So my question is can I remove all the iOS frameworks from the list? Can I also remove them from under my project? Removeing them from the list doesn't remove them from the project.


Or maybe I'm just very tired....

This section isn't really the right place for the question because it is not about the developer forums.

I noticed this myself. Are you using Swift? Swift finds and includes system frameworks automatically.

Moved here.

Ok, now I don't get it...


I was playing with the iAd framework and if I don't add the framework to Build Phases/Link Binary with Libraries I have this exception:


-[SettingsViewController setCanDisplayBannerAds:]: unrecognized selector sent to instance 0x14165e740


Why do I need to add the iAd framework but not, let say, UIKit or AssetsLibrary???

Select the blue project on the left then select the target. Under the Target listing for "General" don't you have Foundation.framework and UIKit.framework listed under "Linked Frameworks and Libraries"?

If I create a new project in Xcode 7.2 (Single View Application), I don't have any framework under Linked Frameworks and Libraries

In order to use the iAd framework, your application needs to access the API's available to the iAd network framework. Therefore, you will have to add the framework into your project. You don't need to embed the framework, you will only need to link your application to the framework itself. That way you are able to call iAd API's from within your application without 'embedding' a standard framework.


If you used a framework that was a non-standard framework (yet approve by Apple) you would have to embed that framework into your application bunldle.


Hope this helps!!

Is adding iOS frameworks required?
 
 
Q