Cannot profile framework unit tests

Originator:robnapier
Number:rdar://26883826 Date Originated:19-Jun-2016 06:05 PM
Status:Open Resolved:
Product:Xcode Product Version:7.3.1, 8.0
Classification: Reproducible:
 
Summary:
Application unit tests can be profiled in Instruments, but if you attempt to profile a framework's unit tests, Instruments throws an unhelpful error message:

Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest'

This occurs in both Xcode 7.3 and 8

Steps to Reproduce:
Create trivial iOS framework project with Unit Tests
Select example unit test
Right-click gutter, and select "Profile Test"
Select instrument (any instrument is fine)
Click record

Expected Results:
profiling as in applications

Actual Results:
Error above (slightly different error in Xcode 8, but same meaning)

Version:
Xcode Version 7.3.1 (7D1014)
Xcode Version 8 Beta 1

Comments

Same problem with XCode 10 :(

Is there any chance to have that working?

By dominik.haska at Nov. 16, 2018, 12:27 p.m. (reply...)

Same problem with Xcode 8 release

Not fixed in Xcode 8 release either.

By mgrebenets at Sept. 30, 2016, 3:47 a.m. (reply...)

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!