Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods dependency only on debug/release build

I'm using a pod as an internal library for my project.

I want to have some pods included only on release/debug builds, like Reveal/Sparkinspector.

Is there any way to define podspec dependencies depending on the currently selected build configuration (build/release)?

like image 482
KrauseFx Avatar asked Oct 26 '13 18:10

KrauseFx


2 Answers

With the recent release it's officially available now: http://blog.cocoapods.org/CocoaPods-0.34/

Use

pod 'Lookback', :configurations => ['Debug']
like image 92
KrauseFx Avatar answered Sep 24 '22 20:09

KrauseFx


For anyone just finding this, this looks to be scheduled in the next release, per my answer here:

https://stackoverflow.com/a/25653469/490180

like image 32
Matt S. Avatar answered Sep 20 '22 20:09

Matt S.