-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build setting IPHONEOS_DEPLOYMENT_TARGET
has multiple values
#113
Comments
Can you share a Xcode project that illustrates the problem? |
Thank-you for the reply @alloy - I tried to create a new simple project which exposes the problem, but everything works as expected. Maybe I'll just recreate the project for this app :-) |
OK, my mistake, I found the problem: I was missing the platform version from "Tests" target in the Podfile:
Panic over! |
Ah I see :) You should be able to just declare that once in the top-level. |
I'm having the same issue even though I specify the Report
Stack
Podfileplatform :ios, '5.0'
pod ...
pod ...
# iOS 6+ Pods
target :bk2, :exclusive => true do
platform :ios, '6.0'
pod ...
end Error
|
Same here:
Error:
(v. 0.36.0.beta.1) |
This should be fixed by #229 |
Yup, it works now, thanks. |
if you have uncommented the ios version in podfile just comment it back |
Xcodeproj 0.14.0
cocoapods 0.27.1
Everything was working fine until I added a third build configuration called "Screenshots". (Previously there were just the defaults, "Debug" and "Release")
Now when I re-run "pod update" or "pod install" I see this error:
RuntimeError - [Xcodeproj] Consistency issue: build setting
IPHONEOS_DEPLOYMENT_TARGEThas multiple values:
{"Release"=>"6.0", "Debug"=>"6.0", "Screenshots"=>"4.3"}/Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.14.0/lib/xcodeproj/project/object/native_target.rb:82:in
common_resolved_build_setting'/Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.14.0/lib/xcodeproj/project/object/native_target.rb:113:in
deployment_target' /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.14.0/lib/xcodeproj/project/object/native_target.rb:149:in
add_build_configuration'/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer/target_installer.rb:47:in
block in add_target' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer/target_installer.rb:46:in
each'/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer/target_installer.rb:46:in
add_target' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer/target_installer/pod_target_installer.rb:15:in
block in install!'`This is weird. There is no mention of "4.3" anywhere in the
pbxproj
file.Here's the "git diff" output (slightly abridged, but it does show the new configuration has deployment target 6.0 for each target):
So that looks fine.
I can only assume that the inconsistency is in the generated xcode project for cocoapods, rather than in the xcode project for my app.
This may also be relevant:
Any suggestions gratefully received!
The text was updated successfully, but these errors were encountered: