title: Using Realm Framework in Today extension (CocoaPods)
body: <p>I am using realm.io as storage for some data. I want to share this data with my Today extension. I am using CocoaPods and I am wondering how I can share that Framework with both targets. My podfile looks like this:</p>
  
  <pre><code>platform :ios, '8.0'
  use_frameworks!
  
  pod 'RealmSwift'
  pod 'MBProgressHUD'
  pod 'Alamofire'
  </code></pre>
  
  <p>I tried with this and it worked when building to device, but not when building to the iOS simulator. It returned the error 'ld: framework not found Pods':</p>
  
  <pre><code>platform :ios, '8.0'
  use_frameworks!
  
  def shared_pods
     pod 'RealmSwift'
     pod 'Alamofire'
  end
  
  target 'App' do
      shared_pods
      pod 'MBProgressHUD'
  end
  
  target 'AppToday' do
      shared_pods
  end
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Appreciate any help.</p>
  
  <p>Brgds</p>