As of Xcode 7, there are some library/framework linking options in Xcode
Go to application Target
in project tab
General -> Embedded Binaries
General -> Link Frameworks and Libraries
Build Phases -> Target Dependencies
Build Phases -> Link Binary with Libraries
Here are a few ways I found
- Using Alamofire shows
Embedded Binaries
option
The Alamofire.framework is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device.
Creating your first iOS Framework shows that adding the
Library.xcodeproj
into workspace, thenBuild Phases -> Link Binary with Libraries
Carthage Tutorial: Getting Started shows that dragging
Library.framework
intoGeneral -> Link Frameworks and Libraries
. It seemsGeneral -> Link Frameworks and Libraries
andBuild Phases -> Link Binary with Libraries
are the sameCarthage seems to differentiate between iOS and OS X.
If you're building for OS X: On your application targets’ “General” settings tab, in the “Embedded Binaries” section, drag and drop each framework you want to use from the Carthage/Build folder on disk.
If you're building for iOS, tvOS, or watchOS: On your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section, drag and drop each framework you want to use from the Carthage/Build folder on disk.
Reading Linking to a Library or Framework, we know that these options are about linking a framework into our application/framework.
But what are the differences between them? Is any single option a catch all
for all of them?