Why won't instruments execute my Monotouch application?

爷,独闯天下 提交于 2019-11-30 11:55:35

It's a signing problem: to run under the control of Instruments, the app is compiled with the Release build settings, not the Debug build settings, which usually means the app is signed with your Distribution certificate instead of your Developer certificate. The app needs to be signed with a Developer certificate for Instruments to be able to control it. Change your signing option to Developer on the Release build and you should be fine.

I also ran into this issue with Xcode 4. What worked for me was...

From Xcode 4, run on the connected iOS device. Launch the Instruments app manually. Choose my template (in this case TIme Profiler). Choose my app from the Target menu (to the right of the Record button). Click the Record button.

The suggested Entitlements solution did not work for me (since Entitlements are evidently no longer required in Xcode 4).

The suggested signing solution did not work either. Also, it would be inconvenient to change this every time I wanted to test with Instruments.

Check your Entitlements.plist for the signed app. If get-task-allow is false, it will prevent Instruments from attaching to the process.

How about launching Instruments from inside XCode? If you're using Xcode 3, it's in the Build menu and then Run with performance tools. This will fire up Instruments and automatically start recording.

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