Common crash solution for iOS

Source: Internet
Author: User

1. Add debugging Control

Add three variables to arguments in executables and set the value to yes.

Nszombieenabled

Mallocstacklogging

Mallocstackloggingnocompact

In GDB: (format:Shell malloc_history<ID> <address>) Shell malloc_history 1436 0x5f7fcf0

2.Compile command/developer/platforms/iphonesimulator. Platform/developer/usr/bin/clang failed with exit code 1

Modify C/C ++ compiler version to gcc4.2





More learning materials:

Http://www.yifeiyang.net/iphone-development-skills-of-debugging-articles-3-crash-after-debugging-skills-program/

Http://blog.csdn.net/linkai5696/article/details/5801287

Http://blog.csdn.net/xiaowei4895/article/details/6753400

Http://hi.baidu.com/zypsg/blog/item/e4c3bbdee3ec2442cdbf1a37.html

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.