Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fix a bug when a local podspec is used by multiple targets with different platforms #710

wants to merge 1 commit into from

2 participants


Here's what happened:

  1. Created a Podfile with two targets, the default one (iOS) and another exclusive one (OS X 10.7).
  2. Both targets reference a local podspec that requires different frameworks to be linked for iOS and OS X (the source code itself is not necessarily local).
  3. CocoaPods generates separate xcconfig files for each target, but the frameworks are the same in both files. (In my case, they both had the OS X frameworks)

This change fixed the issue for me. Probably not the most elegant way to solve the problem, but probably the easiest and least likely to break anything.


Although the fix is good I'm not pulling this in because the issue that you are experiencing is just the tip of bigger icerberg related to issues using the same pod for multiple architectures and this implementation has been substantially changed in the 0.17 branch.

Thanks for the submission anyway. The issue should be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 28, 2012
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/cocoapods/installer/target_installer.rb
2  lib/cocoapods/installer/target_installer.rb
@@ -39,6 +39,8 @@ def initialize(podfile, project, target_definition)
# should be generated.
def install!(pods, sandbox)
+ pods.each { |p| p.top_specification.activate_platform(@target_definition.platform) }
self.requires_arc = pods.any? { |pod| pod.requires_arc? }
@target = @project.add_pod_target(@target_definition.label, @target_definition.platform)
Something went wrong with that request. Please try again.