title: CocoaPods on Today Extension
body: <p>I have a project written in Swift with CocoaPods installed. The project have a Today Extension and I added some Pods to this Target. So far so good.</p>
  
  <p>Running on Simulator it's okay! But running on device I got this error:</p>
  
  <p><code>dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire</code></p>
  
  <p>Searching on web I found a post from <a href="http://natashatherobot.com/" rel="nofollow">Natasha The Robot</a> talking about the right way to create your Pod file and my Pod seems like this:</p>
  
  <pre><code># Podfile
  
  platform :ios, '8.0'
  
  use_frameworks!
  
  # My other pods
  
  def my_pods
      pod 'Alamofire'
  end
  
  target 'MyAppTarget' do
      my_pods
  end
  
  target 'MyTodayExtensionTarget' do
      my_pods
  end
  </code></pre>
  
  <p>I've tried to use <code>link_with</code> but the same error appears</p>
  
  <p>The only solution that I found was deintegrate Cocoapods and add manually the Frameworks.</p>
  
  <p>Does anyone have other solution?</p>
  
  <p>Thanks</p>