IOS common exception exec_bad_access Solution

Source: Internet
Author: User

During iOS development, exec_bad_access is frequently encountered, resulting inProgramThis problem is generally caused by the early release object and then the message sent to the object. You can set the nszombieenabled variable in xcode to obtain detailed information.

What we did before xcode 4 was:

1. On the xcode interface, double-click the executable file in executables to bring up a Setting dialog box.

2. Add the "nszombieenabled" name in the lower part of the arguments option "variables to be set in the Environment". The value is set to "yes ".

3. debug the problematic program again to obtain useful information.


The procedure after xcode 4 is as follows:
Choose product> editscheme> RUN> environment variables from the menu, add nszombieenabled, and set the value to yes,
The detailed settings are as follows:
Related Article

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.