Is there a way in XCode to find and replace a string either at compile time or automatically?
I am using the DLog Macro
#ifdef DEBUG
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
# define DLog(...)
#endif
But sometimes I forget and use NSLog directly, but would want those NSLogs to be changed to DLogs. Would a good solution be to use a build script?