问题
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