Cocoapods for development only

蹲街弑〆低调 提交于 2020-02-05 06:36:46

问题


Is there a way to use a dependency only in development? I don't want to ship the Reveal SDK :/

I'm searching for something similar to

#ifdef DEBUG

Can't find anything in the cocoapods docs.


回答1:


Looks like it's scheduled for next release. See here:

https://github.com/CocoaPods/CocoaPods/issues/731




回答2:


There is an issue on the CocoaPods github that is discussing the ability to dynamically link a pod based on the selected build configuration, but there is currently no release that supports this feature. According to the maintainers, the feature will be released in the next version of CocoaPods.



来源:https://stackoverflow.com/questions/25653321/cocoapods-for-development-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!