title: Framework not found using cocoapods and tvOS
body: <p>I have a project with two targets, one is iOS, the other tvOS. After creating a podfile that will work for both of them, and I'm using cocoapods 1.0.0.beta.3 so apple TV stuff works, I can build the iOS project fine, but I get errors when trying to build the Apple TV app. specifically <code>ld: framework not found Alamofire</code></p>
  
  <p>here's my podfile:</p>
  
  <pre><code>source 'https://github.com/CocoaPods/Specs.git'
  
  def common_pods
    pod 'Alamofire', '~&gt; 3.0'
    pod 'Raven', :git =&gt; 'https://github.com/getsentry/raven-objc.git', :tag =&gt; '1.0.1'
    pod 'SwiftyJSON', :git =&gt; 'https://github.com/SwiftyJSON/SwiftyJSON.git'
    pod 'SDWebImage', '~&gt; 3.7.5'
    pod 'JSQCoreDataKit'
    pod 'MBProgressHUD', :git =&gt; 'https://github.com/smejkpa7/MBProgressHUD.git'
  end
  
  target 'Proj' do
    use_frameworks!
    platform :ios, '8.0'
    common_pods
  end
  
  target 'ProjTvOS' do
    use_frameworks!
    platform :tvos, '9.0'
    common_pods
  end
  </code></pre>
  
  <p>I also get this warning
  <code>ld: warning: directory not found for option '-F/Users/codymace/Library/Developer/Xcode/DerivedData/Proj-gditpcvccsqwvhekifzrooriaezm/Build/Products/Debug-appletvos/Pods-ProjTvOS'</code></p>
  
  <p>I noticed that that framework doesn't exist, because it's actually Pods_ProjTvOS with an underscore instead of a dash. This is what I get out of the box from cocoapods though.</p>
  
  <p>I also just noticed that the pod frameworks are not being added to the build directory. So I copied them over from the iphoneos directory and it built successfully. But then I get issues installing on a device, I'm thinking because I need to clean the project but that removes the frameworks.</p>
  
  <p>Using Xcode 7.2.1 by the way.</p>
  
  <p>Thanks in advance for your help!</p>