Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Multiple Configurations for 1 target #1457

Closed
bachirelkhoury opened this Issue Oct 9, 2013 · 3 comments

Comments

Projects
None yet
2 participants

I am trying to build 1 project with multiple build configurations.

I started with a simple project with 2 default configurations.
I ran pod install, and it all went fine.

Now I duplicated Debug and Release configurations.
screen shot 2013-10-09 at 7 22 54 pm

  • I didn't change any configuration yet.

then duplicated my project Scheme in order to build using the new configurations.
screen shot 2013-10-09 at 7 22 44 pm

screen shot 2013-10-09 at 7 22 28 pm

The setup now looks like
Scheme Prod:
-> Run uses "Debug" (config)
-> Archive uses "Release" (config)

Scheme Dev:
-> Run uses "Debug Dev" (config)
-> Archive uses "Release Dev" (config)

All using the same Target.

Now when I build using Scheme Prod, all works fine.
But when I build using Scheme Dev, I get this Error:

ld: library not found for -lPods

For "Debug" config, all targets are built in
Build/Products/Debug-iphonesimulator/

But for "Debug Dev", only my target is being built inside
Build/Products/Debug Dev-iphonesimulator/

but not libpods, they are instead being built inside
Build/Products/Release-iphonesimulator/

Is there any workaround or setup to get libpods to build in
"Build/Products/Debug Dev-iphonesimulator/"

thanks

Owner

fabiopelosin commented Oct 9, 2013

Did you try to run pod install again?

ok I have upgrade cocoapods to 0.26.2

then ran pod install. This time I got an Error:
RuntimeError - Build setting SDKROOT has multiple values: {"Release"=>"iphoneos", "Debug"=>"iphoneos", "Debug Dev"=>nil, "Release Dev"=>nil}

Here's the Stack:

Stack

   CocoaPods : 0.26.2
        Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]
    RubyGems : 2.0.5
        Host : Mac OS X 10.8.5 (12F37)
       Xcode : 5.0 (5A1412)
Ruby lib dir : /Users/me/.rvm/rubies/ruby-2.0.0-p247/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ f0353f381bf3228ef460eaf2a5c8ada3f86395b3

Podfile

platform :ios, '6.0'

pod 'AFNetworking', '~> 1.3.2'

Error

RuntimeError - Build setting `SDKROOT` has multiple values: `{"Release"=>"iphoneos", "Debug"=>"iphoneos", "Debug Dev"=>nil, "Release Dev"=>nil}`
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/xcodeproj-0.13.0/lib/xcodeproj/project/object/native_target.rb:77:in `common_resolved_build_setting'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/xcodeproj-0.13.0/lib/xcodeproj/project/object/native_target.rb:84:in `sdk'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/xcodeproj-0.13.0/lib/xcodeproj/project/object/native_target.rb:90:in `platform_name'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/xcodeproj-0.13.0/lib/xcodeproj/project/object/native_target.rb:252:in `block in add_system_framework'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/xcodeproj-0.13.0/lib/xcodeproj/project/object/native_target.rb:250:in `each'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/xcodeproj-0.13.0/lib/xcodeproj/project/object/native_target.rb:250:in `add_system_framework'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/xcodeproj-0.13.0/lib/xcodeproj/project/project_helper.rb:58:in `new_target'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/xcodeproj-0.13.0/lib/xcodeproj/project.rb:576:in `new_target'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/installer/target_installer.rb:44:in `add_target'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/installer/target_installer/pod_target_installer.rb:15:in `block in install!'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/user_interface.rb:113:in `message'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/installer/target_installer/pod_target_installer.rb:14:in `install!'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/installer.rb:340:in `block (2 levels) in install_libraries'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/installer.rb:337:in `each'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/installer.rb:337:in `block in install_libraries'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/user_interface.rb:113:in `message'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/installer.rb:336:in `install_libraries'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/installer.rb:113:in `block in generate_pods_project'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/user_interface.rb:52:in `section'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/installer.rb:110:in `generate_pods_project'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/installer.rb:88:in `install!'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/command/project.rb:38:in `run_install_with_update'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/command/project.rb:68:in `run'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/claide-0.3.2/lib/claide/command.rb:206:in `run'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/lib/cocoapods/command.rb:51:in `run'
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.26.2/bin/pod:19:in `<top (required)>'
/Users/me/.rvm/gems/ruby-2.0.0-p247/bin/pod:23:in `load'
/Users/me/.rvm/gems/ruby-2.0.0-p247/bin/pod:23:in `<main>'
/Users/me/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval'
/Users/me/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `<main>'

a similar issue was posted few hours after mine
#1462

will move this topic there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment