App being profiled by Instruments crashes on launch

Originator:armadsen
Number:rdar://40459798 Date Originated:22-May-2018 01:13 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Version 9.4 (9Q1019a)
Classification:UI/Usability Reproducible:Sometimes
 
Summary:
When profiling an app in the simulator with Instruments using the Allocations or Time Profiler templates, generally profiling will work the first time, but on subsequent runs, the app will crash on launch.

Steps to Reproduce:
1. Profile an app in Instruments by choosing Product->Profile in Xcode, then selecting the Allocations or Time Profile instrument.
2. Hit record.
3. Hit stop.
4. Make some code changes, then choose Product->Profile again.
5. Hit record again.

Expected Results:
The app launches again for a second run and profiling proceeds normally.

Actual Results:
The app begins to launch (the launch screen is shown), but immediately terminates.

Version:
Version 9.4 (9Q1019a)

Notes:
The only workaround I’ve found is to quit Instruments and the simulator. Sometimes this isn’t enough and a reboot is required.

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!