Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Error when trying to define pod for a specific build configuration #707

Closed
sguillope opened this Issue · 1 comment

2 participants

@sguillope

Report

I am trying to define some pods only for a specific build configuration. For example I want to only link the HockeySDK framework with the AdHoc build configuration for all of my project's targets.
I don't understand how I'm supposed to do that.

Stack

   CocoaPods : 0.16.0
        Ruby : ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin11.0]
    RubyGems : 1.8.24
        Host : Mac OS X 10.7.5 (11G63)
       Xcode : 4.5.2 (4G2008a)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 57454dcdca59b08bc59fb6a9a5aa05fa9031a528

Podfile

platform :ios, 6.0

xcodeproj 'MyProject', { 'AdHoc' => :adhoc }
inhibit_all_warnings!

link_with [ 'MyTarget1', 'MyTarget2', 'MyTarget3', 'MyTarget4' ]

pod 'RestKit', '~> 0.10.3'
pod 'SVProgressHUD'
pod 'GRMustache'
pod 'JSONKit'

target :adhoc do
  pod 'HockeySDK'
end

target :tests, :exclusive => true do
  link_with 'MyProjectTests'
end

Error

undefined method `merge' for nil:NilClass
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/project.rb:80:in `add_pod_target'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/project.rb:74:in `each'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/project.rb:74:in `add_pod_target'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/installer/target_installer.rb:44:in `install!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/installer.rb:166:in `generate_target_support_files'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/installer.rb:164:in `each'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/installer.rb:164:in `generate_target_support_files'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/installer.rb:122:in `install!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/user_interface.rb:77:in `message'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/installer.rb:121:in `install!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/user_interface.rb:37:in `section'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/installer.rb:112:in `install!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/command/install.rb:46:in `run_install_with_update'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/command/install.rb:51:in `run'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/lib/cocoapods/command.rb:75:in `run'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.16.0/bin/pod:16
/usr/bin/pod:23:in `load'
/usr/bin/pod:23
@fabiopelosin
Owner

Moving to #840

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.