Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
与所有 iOS 项目一样,我的项目有大量NSLogs. 我想切换到,DLog因为我将宏用于调试模式。如何NSLogs在整个项目中替换为DLog?Xcode中是否有任何快捷方式可以做到这一点?谢谢。
NSLogs
DLog
perl从命令行(Terminal.app)使用:
perl
$ cd /path/to/project/source $ perl -pi -e 's/NSLog/DLog/' *.m *.mm