title: What are the libraries linking options in Xcode?
body: <p>As of Xcode 7, there are some library/framework linking options in Xcode</p>
  
  <p>Go to application <code>Target</code> in project tab</p>
  
  <pre><code>General -&gt; Embedded Binaries
  General -&gt; Link Frameworks and Libraries
  Build Phases -&gt; Target Dependencies
  Build Phases -&gt; Link Binary with Libraries
  </code></pre>
  
  <p>Here are a few ways I found</p>
  
  <ul>
  <li>Using <a href="https://github.com/Alamofire/Alamofire" rel="noreferrer">Alamofire</a> shows <code>Embedded Binaries</code> option</li>
  </ul>
  
  <blockquote>
    <p>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.</p>
  </blockquote>
  
  <ul>
  <li><p><a href="https://robots.thoughtbot.com/creating-your-first-ios-framework" rel="noreferrer">Creating your first iOS Framework</a> shows that adding the <code>Library.xcodeproj</code> into workspace, then <code>Build Phases -&gt; Link Binary with Libraries</code></p></li>
  <li><p><a href="http://www.raywenderlich.com/109330/carthage-tutorial-getting-started" rel="noreferrer">Carthage Tutorial: Getting Started</a> shows that dragging <code>Library.framework</code> into <code>General -&gt; Link Frameworks and Libraries</code>. It seems <code>General -&gt; Link Frameworks and Libraries</code> and <code>Build Phases -&gt; Link Binary with Libraries</code> are the same</p></li>
  <li><p><a href="https://github.com/Carthage/Carthage" rel="noreferrer">Carthage</a> seems to differentiate between iOS and OS X. </p></li>
  </ul>
  
  <blockquote>
    <p>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.</p>
    
    <p>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.</p>
  </blockquote>
  
  <p>Reading <a href="https://developer.apple.com/library/ios/recipes/xcode_help-project_editor/Articles/AddingaLibrarytoaTarget.html" rel="noreferrer">Linking to a Library or Framework</a>, we know that these options are about linking a framework into our application/framework. </p>
  
  <p>But what are the differences between them? Is any single option a <code>catch all</code> for all of them?</p>