Xcode 4.1 Instruments Hardly Working For Me [duplicate]

一曲冷凌霜 提交于 2019-12-07 16:33:22

问题


Possible Duplicate:
Bug with starting Instruments via Profile under XCode 4.1 Build 4B110

Instruments used to work fine, however now that I have the new 4.1 Xcode on Lion, it is extremely slow and I have to wait about 5 min before it is responsive. Is anyone else having this same problem? I am using iOS simulator too.

I have already tried reinstalling and uninstalling Xcode a few times as well.


回答1:


/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>



回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/6797728/xcode-4-1-instruments-hardly-working-for-me

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