When we first started running Xcode 8.0, we might be a little impatient with the printed logs, so how can we print so many things?
Let's first look at how to disable it.
Follow the steps to openProduct > Scheme > Edit Scheme
chooseRun > Argumens > Environment Variables ;join inOS_ACTIVITY_MODE. As shown in the figure below
This way there will be no annoying logs. But... In this way, the log log will not be printed in the iOS 10 real machine in the future. The solution will rewrite the log:
This adds a timeString method to NSString, and declares this method in the category NSString+.
Implemented in NSString+
Here we solve the problem of cumbersome log logs and the problem of not being able to print on real iOS 10 machines. If you have any questions, please leave me a message and the editor will reply to everyone in time. Thank you very much for your support for my website!