Instruments: Target failed to run. Permission to debug [app bundle] was denied.

Originator:daniel.martin.carabias
Number:rdar://34997948 Date Originated:15-Oct-2017 04:20 PM
Status:Open Resolved:
Product:Developer Tools Product Version:9.1b2
Classification:Serious Bug Reproducible:Always
 
Summary:
This is a duplicate of radar #34993189

As of Xcode 9 (including 9.1b2) we are no longer able to run Instruments on our project.It works with a small new project but not our existing, 7-year old codebase. This never happened before.


Steps to Reproduce:
Run for Profiling
Observe https://twitter.com/steipete/status/918987004490207232

Expected Results:
Instruments should work.

Actual Results:
Instruments fails to work

Version:
9.1b2

Notes:
We use ccache to speed up compile times. https://pspdfkit.com/blog/2015/ccache-for-fun-and-profit/

Unsure how to provide more information or how to work around. This is seriously impacting the quality of our product. Instruments seems to work when I run the app on device and then attach it later, but that’s a pretty bad workaround.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!