Specifying preprocessor macros for a cocoapod dependency, without forking it
问题 I have an XCode workspace managed by Cocoapod with a few dependencies to external libraries. One of them, MTDates, extends NSDate and NSDateComponents with either prefixed methods, or non-prefixed if a certain preprocessor macro is defined (which is what I want). There are a few places where I can put the preprocessor macro definition in order to have the compiled library provide the non-prefixed methods, but all seem to be reset as soon as I ask Cocoapod to update the project, which leads me