Xcode 6 Instruments freeze

送分小仙女□ 提交于 2019-12-08 14:52:10

问题


Profiling my iOS 8 app in Xcode 6 Instruments will run the app for about 5 seconds and then freeze. The profiler will still run after that point but the app is frozen and unusable. Happens on device and simulator and regardless of which profiler I'm using (timer, leaks, etc.)

Running the app from the debugger or an ad hoc build works fine. Profiling with iOS 7 works fine as well.

Any idea why this may be happening? Is Instruments broken?


回答1:


Same issue here:

Application hangs when profiling with instrument in XCode 6.0.1

Looks like if you remove all the NSLog statements it will fix it. For me this is happening only on iOS 8, i have no problems on iOS 7.




回答2:


This was also happening to me on an iPod Touch + iOS 8.

Upgrading to 8.0.2 solved this problem for me.




回答3:


For me I found out that Instruments was freezing when I started recording due to Xcode already running the application.

It's important for Xcode not to be running any processes when starting Instruments. If you do, Instruments will look like it is hanging.

You can push through the hang by going to Xcode and pressing "Continue Program Execution" on the bottom console toolbar of Xcode.




回答4:


I have a very large library that I work on and instruments hangs for me when trying to profile it. I found that I have to have DEBUG_INFORMATION_FORMAT set to DWARF with dSYM File at the app's build settings level.



来源:https://stackoverflow.com/questions/26027113/xcode-6-instruments-freeze

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!