CocoaPods仅依赖于调试/发布版本 [英] CocoaPods dependency only on debug/release build
本文介绍了CocoaPods仅依赖于调试/发布版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用pod作为我项目的内部库。
I'm using a pod as an internal library for my project.
我想在发布/调试版本中包含一些pod,比如Reveal / Sparkinspector 。
I want to have some pods included only on release/debug builds, like Reveal/Sparkinspector.
有没有办法根据当前选择的构建配置(构建/发布)定义 podspec
依赖项?
Is there any way to define podspec
dependencies depending on the currently selected build configuration (build/release)?
推荐答案
随着最近的发布,它现在正式上市: http://blog.cocoapods.org/CocoaPods-0.34/
With the recent release it's officially available now: http://blog.cocoapods.org/CocoaPods-0.34/
使用
pod 'Lookback', :configurations => ['Debug']
这篇关于CocoaPods仅依赖于调试/发布版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文