I'm trying to profile an iOS app in Xcode 6.3, but I'm stopped by the error message:
"The document Activity Monitor.tracetemplate could not be opened."
Repro Steps:
1. In the menu bar, click Xcode, Open Developer Tool, Instruments
2. The Choose Profiling Template window appears. Select Activity Monitor,
3. "Import Trace" open dialog appears. Select "Activity Monitor.tracetemplate"
4. "The document “Activity Monitor.tracetemplate” could not be opened." popup appears.
This occurs no matter what instrument I select.
Alternatively if I go to the Instruments Preferences and select "Supress template chooser" I can open up instruments but when I try to drag on Activity Monitor I get a crash with the following error in the crash log:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
Assertion failed: (_coreSpace != nil), function -[XRTrace coreSpace], file /SourceCache/Instruments/Instruments-57536/XRTrace.m, line 514.
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff980d2286 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff95773b53 abort + 129
2 libsystem_c.dylib 0x00007fff9573bc39 __assert_rtn + 321
3 com.apple.dt.instruments.InstrumentsPlugIn 0x000000010c3e7259 -[XRTrace coreSpace] + 57
4 com.apple.dt.instruments.InstrumentsPlugIn 0x000000010c445bc8 -[XRInstrument(AnalysisCoreSupport) updateAnalysisCoreForNextRun] + 432
5 com.apple.dt.instruments.InstrumentsPlugIn 0x000000010c3e3322 -[XRInstrument setTrace:] + 901
6 com.apple.dt.instruments.ActivityPlugin 0x0000000115f91fb5 0x115f85000 + 53173
7 com.apple.dt.instruments.InstrumentsPlugIn 0x000000010c3583b1 -[PFTInstrumentList addInstrument:atIndex:] + 558
8 com.apple.dt.instruments.InstrumentsPlugIn 0x000000010c358163 -[PFTInstrumentList addInstrument:] + 82
9 com.apple.dt.instruments.InstrumentsKit 0x000000010bcae3a3 -[PFTTrackView performDragOperation:] + 318