title: CodeSign Pods trouble
body: <p>I have a project with 3 targets:</p>
  
  <p>1- DemoApp - iOS App</p>
  
  <p>2- DemoExt - iOS Extension</p>
  
  <p>3- DemoFramework - iOS 8 Framework </p>
  
  <p>I'm not sure if my podfile is setup correctly cause I'm having trouble with archiving only.
  Building each of the targets works fine.</p>
  
  <pre><code>source 'https://github.com/CocoaPods/Specs.git'
  platform :ios, '8.0'
  
  xcodeproj 'MyProject'
  
  target :DemoApp do
      use_frameworks!
      pod 'Facebook-iOS-SDK'
      pod 'ReactiveCocoa'
  end
  
  target : DemoExt, :exclusive =&gt; true do
      use_frameworks!
      pod 'ReactiveCocoa'
  end
  
  target : DemoFramework do
      use_frameworks!
      pod 'ReactiveCocoa'
  end
  </code></pre>
  
  <p>The intent is to have Facebook installed only on DemoApp.</p>
  
  <p>The DemoFramework is used on DempApp and DemoExt targets</p>
  
  <p>When compiling &amp; running everything looks fine.
  Only when I try to Archive I'm getting CodeSign issues on all the ReactiveCocoa frameworks...</p>
  
  <blockquote>
    <p>CodeSign /IntermediateBuildFilesPath/UninstalledProducts/ReactiveCocoa.framework
        cd /Pods
        export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
        export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
         Signing Identity:     "iPhone Distribution ..."</p>
  
  <pre><code>/usr/bin/codesign --force --sign &lt;hash...&gt; &lt;path to DerivedData&gt;/DerivedData/Pop-adpfaxhfjfgnnpbrabyuhgiyxgek/Build/Intermediates/ArchiveIntermediates/Pop/IntermediateBuildFilesPath/UninstalledProducts/ReactiveCocoa.framework
  </code></pre>
    
    <p>/Library/Developer/Xcode/DerivedData/Pop-adpfaxhfjfgnnpbrabyuhgiyxgek/Build/Intermediates/ArchiveIntermediates/Pop/IntermediateBuildFilesPath/UninstalledProducts/ReactiveCocoa.framework:
    invalid or unsupported format for signature Command /usr/bin/codesign
    failed with exit code 1</p>
  </blockquote>
  
  <p>although i verified the ReactiveCocoa.framework is at the specified directory the codeSign is still not working.</p>
  
  <p>Any help would be appreciated.</p>