Instruments can't attach to running process on iPhone

99封情书 提交于 2019-12-06 11:07:42

I had the same problem. I didn't solve it initially, but an easy workaround is to launch the app yourself and then attach to it from the "Attach to Process..." command in the Target menu in the Instruments window.

  1. After some digging around it seems this is a common topic of discussion on the apple developer forums: 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.

  1. 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.

  2. I would recommend this tutorial since it is one of the better ones for explaining how to use Instruments

It can be very confusing at first, but take the time to get to know it and it'll ease a lot of headaches later.

Hope atleast one of these approaches work for you.

In Xcode 10: don't launch Instruments separately. Instead:

From Xcode’s menu bar, select Product\Profile, or press ⌘I. This will build the app and launch Instruments. You will be greeted with a selection window...


Full Tutorial

Note If you do launch separately you'll get the failed to attach to target error with the recommendation to disable System Integrity.

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