KrauseFx
KrauseFx

Reputation: 11741

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)?

Upvotes: 39

Views: 22436

Answers (3)

KrauseFx
KrauseFx

Reputation: 11741

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

Use

pod 'Lookback', :configurations => ['Debug']

Upvotes: 102

Matt S.
Matt S.

Reputation: 1892

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

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

Upvotes: 0

wattson12
wattson12

Reputation: 11174

see the multiple targets section here: https://github.com/CocoaPods/CocoaPods/wiki/A-Podfile

e.g.

target :debug do
    pod 'TestFlight'
end

Upvotes: -6

Related Questions