我想针对每个target设置不同的宏, 比如debug版本, 那么X=0, release版本X=1
怎么在Podfile里设置这些属性呢?
谢谢
https://github.com/CocoaPods/CocoaPod...
去git问了个问题,得到回到了看来目前没有简单的方法支持.
At the moment there is no a convenient way backed by CocoaPods as the prefix headers of the targets are generated from scratch after every installation. There are two work arounds:
Create one header file for your target and after an installation add the import to the prefix headers created by CocoaPods.
Write a post install hook in the podfile which adds your macros to the prefix header of each target (docs).
This feature is discussed in #833.
2 回答1.1k 阅读
1 回答1k 阅读✓ 已解决
1 回答2.7k 阅读
1 回答1.4k 阅读
1.7k 阅读
1 回答922 阅读
1 回答1.1k 阅读
看看这个issuse就明白了:https://github.com/CocoaPods/Specs/is...
用