Xcode 4.1 Instruments Hardly Working For Me [duplicate]

牧云@^-^@ 提交于 2019-12-05 19:49:18

/etc/authorization, add following:

<key>com.apple.instruments.process.analysis</key>
<dict>
<key>authenticate-user</key>
<false/>
<key>class</key>
<string>user</string>
<key>comment</key>
<string>Rights for Instruments</string>
<key>group</key>
<string>admin</string>
<key>shared</key>
<true/>
<key>timeout</key>
<integer>36000</integer>
</dict>

Try launching Instruments separately, instead of using the Profile build option in XCode. You should be able to run your app in Simulator, then open Instruments, select Leaks, and then choose your app as the Target in Instruments (Choose Target, Attach to Process, in the System section).

Hopefully, this is something that will be fixed by Apple, but you should be able to at least check for leaks like this.

[UPDATE] I'm getting some weird leaks doing this, so, I'm not sure if it's completely working or just me.

I tried the approach of running my iApp, then selecting Instruments. When I tried to then start up Instruments, the iOS Simulator quit.

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