CocoaPods' Pods.xcconfig conflicts with existing ones CocoaPods' Pods.xcconfig conflicts with existing ones xcode xcode

CocoaPods' Pods.xcconfig conflicts with existing ones


You can still have your cake and (partly) eat it. Your targets' xcconfig file can include the cocoapods one:

#include "../Pods/Pods.xcconfig"MY_SETTING = YES...

However, the part you still can't eat is when you want to specify the flags already set in Pods.xcconfig. I can't find a way to add to paths that Cocoapods already set in the included file, e.g. you'd want this:

HEADER_SEARCH_PATHS = $(HEADER_SEARCH_PATHS) MyOtherIncludes

However this line simply drops the Cocoapods header search path, leaving only MyOtherIncludes :-(

One workaround for this should be to move MyOtherIncludes to the project's xcconfig files, which Cocoapods doesn't touch. Unfortunately this didn't work for me, YMMV.