title: Podfile with iOS and OSX Support
body: <p>I'm trying to setup CocoaPods with a legacy project which has both iOS and a OSX targets.</p>
  
  <p>If, at the top of my Podfile, I specify:</p>
  
  <pre><code>platform :osx, '10.9'
  </code></pre>
  
  <p>and, as an example, specify a pod like CorePlot:</p>
  
  <pre><code>pod 'CorePlot'
  </code></pre>
  
  <p>Then, after a <code>pod update</code>, I see Mac specific sources in my Pods directory:</p>
  
  <pre><code>Pods/CorePlot/framework/MacOnly
  </code></pre>
  
  <p>which is okay, except that if I were to specify <code>:ios</code> as the <code>platform</code> then I see:</p>
  
  <pre><code>Pods/CorePlot/framework/iPhoneOnly
  </code></pre>
  
  <p>and I <em>do not</em> see the <code>MacOnly</code> directory.</p>
  
  <p>CorePlot's podspec specifies these directories based on the platform, which is why they are showing up differently based on the platform I select. However, I would like to be able to have my Podfile work for my iOS and OSX targets.</p>
  
  <p>I continued and thought perhaps I could specify the platform based on the target in my project, and omit the top level platform declaration:</p>
  
  <pre><code>target "OSX" do
    platform :osx, '10.9'
  end
  
  target "iOS" do
    platform :ios, '7.0'
  end
  </code></pre>
  
  <p>However, once I again do a <code>pod update</code> now I get a version compatibility error:</p>
  
  <blockquote>
    <p>[!] The platform of the target <code>Pods</code> (OS X ) is not compatible with <code>CorePlot (1.5.1)</code> which has a minimum requirement of iOS 3.1.3 - OS X 10.5."</p>
  </blockquote>
  
  <p>Which would seem to indicate that CocoaPods is not recognizing the version information in my target block.</p>
  
  <p>And, if I add a platform to the top level, in addition to the target specific platform, I then get only the code for whichever platform the top level platform indicated.</p>
  
  <p>Am I forced to have two separate projects? One for iOS and one for Mac OS X, or is there a way to do this?</p>
  
  <p>Many thanks,</p>
  
  <p>Levi</p>
  
  <pre><code>   CocoaPods : 0.31.1
          Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
      RubyGems : 2.0.3
          Host : Mac OS X 10.9.2 (13C64)
         Xcode : 5.1.1 (5B1008)
  Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib Repositories : master - https://github.com/CocoaPods/Specs.git @ bf6ff4b23c2e8b9e5fe5840eddfc3bad122eb932
  </code></pre>