"Original" iOS learning Xcode8 about the console does not print error messages

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.