Skip to content
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

CocoaPods mistakenly flagging a warning when using multiple build configurations #3316

Closed
ghost opened this issue Mar 25, 2015 · 6 comments
Closed

Comments

@ghost
Copy link

ghost commented Mar 25, 2015

I have three build configurations in my App, Release, Debug & Beta. When running pod install CocoaPods flags a warning about my project already having a custom config set. Everything works, but this is the warning I get:

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Gojimo` to `Pods/Target Support Files/Pods/Pods.beta.xcconfig` or include the `Pods/Target Support Files/Pods/Pods.beta.xcconfig` in your build configuration.

This is my Podfile:

platform :ios, '7.0'

xcodeproj 'XXXXX.xcodeproj'

source 'https://github.com/CocoaPods/Specs.git'

inhibit_all_warnings!

pod 'DTCoreText', '~> 1.6.13'
pod 'Reachability', '~> 3.1.1'
pod 'AFNetworking',  :head
pod 'AFDownloadRequestOperation', '~> 2.0.0'
pod 'JVFloatLabeledTextField', :git => 'https://github.com/synchromation/JVFloatLabeledTextField.git'
pod 'SSZipArchive', '~> 0.3.1'
pod 'NYXImagesKit', :git => 'https://github.com/synchromation/NYXImagesKit.git'
pod 'NSData+Base64', '~> 1.0.0'
pod 'Mixpanel'
pod 'GoogleConversionTracking'
pod 'RMStore', '~> 0.7'

And my project's build configuration:
screen shot 2015-03-25 at 10 07 36

@neonichu
Copy link
Member

Did you manually change the XCConfigs for the Beta configuration to "Pods.release" or was this done by CocoaPods?

@ghost
Copy link
Author

ghost commented Mar 25, 2015

No manual changes @neonichu

@keab42
Copy link

keab42 commented Mar 26, 2015

I've noticed this before. If you've already got Cocoapods set up, then duplicate an existing configuration to create a new one, this is what happens. I'd guess you copied Release here, hence why the targets all have pods.release set as the config.

The way I've gotten round it is to set all the configurations to "none" then run pod install again.

@ghost
Copy link
Author

ghost commented Mar 26, 2015

@keab42 your solution worked but it only set the configuration correctly for my main target. I had to set the other configurations manually on the other targets, which is not the end of the world I guess.

I'm closing this issue as it was probably something cased by duplicating the build configuration as pointed out by @keab42

@ghost ghost closed this as completed Mar 26, 2015
@neonichu
Copy link
Member

You can configure your custom build configurations, see http://guides.cocoapods.org/syntax/podfile.html#xcodeproj

@ghost
Copy link
Author

ghost commented Mar 26, 2015

Thanks @neonichu I didn't know you could do that. That definitely solves the problem!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants