I upgraded my Xcode to 8 a few days ago, but when I run the program, I print a lot of useless information, such as:
Xcode8 printing garbled when running a program
So various search answers, find the following answer:
Edit scheme-> Run, Arguments, add os_activity_mode = disable inside Environment variables
Solving garbled problem plots
The above problem is solved, but the new problem comes! the error message is not printed!
This is a bit of trouble, some errors are not printed only by guessing, very troublesome ah!
Another Google, finally found a solution, has been actually used, is possible!
Specific implementation:
-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (nsdictionary *) launchOptions { Nssetuncaughtexceptionhandler (&Uncaughtexceptionhandler); return YES;}
void Uncaughtexceptionhandler (nsexception *exception) { NSLog (@ "Reason:%@ ", exception); // Internal Error Reporting }
The specific reason for this problem is probably because Xcode8 has discarded the log print, causing the problem!
The above is a small part of some of the summary, what comments you can put forward, convenient and timely correction!
Original iOS learning Xcode8 not printing error messages about the console