title: dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire error on device iOS 9 , not able to compile
body: <p>I am using "Google analytics " SDK for iOS. The sdk forced me to set <code>Enable bitcode</code> from <code>Yes</code> to <code>NO</code></p>
  
  <p>When I disabled bitcode I was getting compiling error on my device (iOS 9) buut not on simulator <code>dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
    Referenced from: /var/mobile/Containers/Bundle/Application/940F4D49-6239-4645-9FAE-99D482BFA1C4/Skip It.app/Skip It
    Reason: image not found</code></p>
  
  <p>I added Alamofire via cocoaPods. TO resolve aforementioned error I added Alamofire framework in "Linked Framworks and Libraries" and made It optional, as shown in screenshot<a href="https://i.stack.imgur.com/LkDit.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LkDit.png" alt="enter image description here"></a></p>
  
  <p>Now I am able to run app on my device (iOS 9), but whenever code which uses Alamofire of other frameworks which are made optional, app get crashed.  </p>
  
  <p>I am not able to find solution. I googled a lot but no use. Please someone help</p>