Instruments does not work on XCode 4 with device

前端 未结 5 1100
后悔当初
后悔当初 2020-12-13 20:58

Until very recently, instruments worked fine. I don\'t know what I did to make it mad, but now it won\'t attach to any device that I try to Profile with; no device at all. I

相关标签:
5条回答
  • 2020-12-13 21:15

    I quit Xcode and Instruments, relaunched them, did a clean build, and then did Product->Profile, and Instruments magically started working again with my device. Go figure.

    0 讨论(0)
  • 2020-12-13 21:19

    Have you also installed the latest developer builds of XCode 4.2 w/ the iOS 5.0 builds? I've found that even if you install it in a separate directory, it does something to the instruments in the original XCode 4 directory. Using the latest version of XCode will allow you to use it properly.

    0 讨论(0)
  • 2020-12-13 21:27

    There was a discussion on the apple developer forums about this issue:

    Instruments does not work on Xcode 4 with device

    It appears that different Apple products will change/update the MobileDevice framework. Some of these updates break the Instruments integration.

    To fix this on my own machine, I installed the iTunes 10.5 beta v6. Fire up XCode, and I'm back in business Instrumenting on my device.

    0 讨论(0)
  • 2020-12-13 21:28

    Workaround: Go back to Xcode and use Cmd-Tab to switch to Instruments. I have to do that twice to get Instruments running again.

    referred

    0 讨论(0)
  • 2020-12-13 21:33

    May be worth a try - I had the same issue - I changed 'Targeted Device Family' from 'iphone/ipad' to 'iphone' in the build settings and this solved it for me.

    0 讨论(0)
提交回复
热议问题