Reputation: 1707
So everytime we run a pod update, the pods project gets regenerated. Whatever build settings we manually set in the pods project is reset.
I'm wondering if theres anyway to set some build settings of the targets in the pods project after the pod project is generated by a pod update?
Any help is appreciated.
Upvotes: 5
Views: 2134
Reputation: 1707
After a few hours of twiddling with cocoapods and reading documentation, I have come up with the following solution:
In your podspec file, there is an option to specify the xcconfig to be generated, set the following:
s.xcconfig = {'TEST_AFTER_BUILD' => 'YES', 'GCC_GENERATE_TEST_COVERAGE_FILES' => 'YES'}
In my case i needed to generate coverage files from the pods project.
This will in turn be generated in the xcconfig file after the pod update and hence be included in the pods project.
Upvotes: 3
Reputation: 1199
Pod is design to automatically set those build settings so that you don't have to,
If you are talking about the build setting in your own project, normally cocoaPods
will not touch those settings.
Upvotes: 1