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.
看看这个issuse就明白了:https://github.com/CocoaPods/Specs/is...
用
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.