Profile your application in the simulator with 'Zombies' Instrument.
2012-10-09 11:12
507 查看
Profile your application in the simulator with 'Zombies' Instrument.
Run your app for a while and do whatever you have to do to make your app crash. When it does, you will get a pop up like the image below and it will halt the profiling of the app:
Then if you click on the little arrow next to the address (0x158b3c00) .. it will take you to the object retain/release history for the object that was over released (the zombie).
If you highlight the line above where the retain count went to -1, and open View -> Extended detail, it should point you to the stack trace and line in your code where the object was overreleased:
If you double click the class where it is occuring, it will open up your source and show you the bad line of code:
Run your app for a while and do whatever you have to do to make your app crash. When it does, you will get a pop up like the image below and it will halt the profiling of the app:
Then if you click on the little arrow next to the address (0x158b3c00) .. it will take you to the object retain/release history for the object that was over released (the zombie).
If you highlight the line above where the retain count went to -1, and open View -> Extended detail, it should point you to the stack trace and line in your code where the object was overreleased:
If you double click the class where it is occuring, it will open up your source and show you the bad line of code:
相关文章推荐
- 真机调试xcode,The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Your build settings specify a provisioning profile with the UUID “xxxx" however, no such provisionin
- Error creating bean with name 'StuService' defined in ServletContext resource [/WEB-INF/applicationC
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- swift3 截取字符串(substringwithrange)报错,it will be removed in Swift 3. Use the '..<' operator.
- Error creating bean with name 'UserManger' defined in class path resource [user/applicationContext.x
- There was an internal api err.. & The entitlements specified in your application’s Code Signing...
- The name 'Profile' does not exist in the current context
- Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Initialization of bean faile
- The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods install
- 8.1 Details Your app does not comply with the Guidelines for Using Apple's Trademarks and Copyrights
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'mySessionFactory' defined in class path resource [applicationContext.xml]:
- Server Error in '/' Application. Access to the Path Is Denied" error message appears
- The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods install
- Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
- The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods install
- Could not load NIB in bundle: 'NSBundle </Users/wyd/Library/Application Support/iPhone Simulator/5.0