简体   繁体   English

iPhone应用程序崩溃?

[英]iphone app crashes?

i am running my program using iphone simulator n at some point application crashes..but there is no error...just getting Debugging terminated in debugger console 我正在使用iphone模拟器n运行我的程序,有时应用程序崩溃..但没有错误...只是在调试器控制台中终止了调试

how i can check this what is the problem of crashes? 我如何检查这是崩溃的问题?

How about memory leaks?? 内存泄漏如何? If you are alloc-ing a lot of variables and not releasing them this can cause memory leaks. 如果分配大量变量而不释放它们,则可能导致内存泄漏。 Which will in time cause the app to crash with a black screen. 这将导致应用程序黑屏崩溃。 Try running your app with the "Leaks" tool. 尝试使用“泄漏”工具运行您的应用程序。 Go to Run -> Run with Performance Tools -> Leaks. 转到运行->使用性能工具运行->泄漏。 Go through everything you can in the app with this tool running and it will inform you of any memory leaks. 运行此工具,您将在应用程序中尽一切可能,它将通知您所有内存泄漏。

Here is a good link for information about using the Leaks Instrument: http://mobileorchard.com/find-iphone-memory-leaks-a-leaks-tool-tutorial/ 这是有关使用泄漏仪器的信息的良好链接: http : //mobileorchard.com/find-iphone-memory-leaks-a-leaks-tool-tutorial/

Also check your code!! 还要检查您的代码!! If you know where its crashing go and check the code and make sure your doing everything you intend to! 如果您知道它崩溃的位置,请检查代码,并确保您打算做的所有事情!

Try to look into crash logs. 尝试查看崩溃日志。 You can find them in ~/Library/Logs/CrashReporter 您可以在〜/ Library / Logs / CrashReporter中找到它们

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM