How do I disable NSLog?

前端 未结 15 2095
陌清茗
陌清茗 2020-12-05 07:46

I\'d like to do the following in Xcode:

Find all NSLog commands without comments, and replace it with //NSLog...

In other words, I want to comment all NSLog

15条回答
  •  执笔经年
    2020-12-05 08:20

    Update:

    The answer bellow is actually much better. See here.

    Initial answer:

    There is a little hack that you could do. Search for all NSLog and replace them with //NSLog and than do another search for ////NSLog and replace them with //NSLog.

提交回复
热议问题