Hide strange unwanted Xcode logs

前端 未结 13 2732
孤独总比滥情好
孤独总比滥情好 2020-11-22 02:34

When using the Xcode 8+ and creating a new blank project, the following logs appear when running the application:

2016-06-13 16:33:34.406093 TestiOS10[8209:1         


        
13条回答
  •  你的背包
    2020-11-22 03:04

    This solution has been working for me:

    1. Run the app in the simulator
    2. Open the system log ( + /)

    This will dump out all of the debug data and also your NSLogs.

    To filter just your NSLog statements:

    1. Prefix each with a symbol, for example: NSLog(@"^ Test Log")
    2. Filter the results using the search box on the top right, "^" in the case above

    This is what you should get:

提交回复
热议问题