Sigbat or exc_bad_access solutions for zombie signaling

Source: Internet
Author: User
About the zombie signal sigbat or exc_bad_access solution with the development of Xcode in-depth, I believe many students are on the emergence of Sigbat or exc_bad_access problems, compile is right, the runtime did some operations, Jump to the main function, and then appear sigbat or exc_bad_access hint, the information can not correctly determine the cause of the error.
Here is a way to provide you with the output of Sigbat or exc_bad_access in the console, the basic 90% can solve your problem.
123456789 第一步:在Xcode的菜单栏选择“Product”,然后选择“EditScheme”; 第二步:在弹出的对话框中选择“Arguments”; 第三步:在“Environment Varibles”中添加“NSZombieEnabled”,值是“YES” 。这样就大功告成了。这时候,如果你的程序在运行过程中还出现SIGBAT或者EXC_BAD_ACCESS错误,

Sigbat or exc_bad_access solutions for zombie signaling

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.