XCode 4 can't symbolicate crash reports for archived iOS builds

Originator:cpickslay
Number:rdar://9241304 Date Originated:4/6/11
Status:Duplicate/9194205 Resolved:
Product:Developer Tools Product Version:4
Classification:Serious Bug Reproducible:Always
 
Summary: 

The symbolicatecrash script that XCode 4 uses to symbolicate crash reports can't find the .dSYM or executable files using Spotlight, so symbols from the executable can't be resolved. 

Steps to Reproduce:

1) Create an iOS project and include a mechanism to cause a crash
2) Archive the build in XCode 4, then deploy that build to a device
3) Cause the build to crash
4) Connect the device to the computer running XCode to download the crash reports

Expected Results:

The symbols in the crash report's stack trace in the XCode Organizer should be resolved to their corresponding line numbers.

Actual Results:

Framework stack frames are resolved, but stack frames for the iOS executable are not. Here's a sample:

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib               	0x00002c98 objc_msgSend + 16
1   Verbally                      	0x00007e10 0x1000 + 28176
2   Verbally                      	0x000237f6 0x1000 + 141302
3   Verbally                      	0x000202a0 0x1000 + 127648
4   Verbally                      	0x0002014a 0x1000 + 127306
5   Verbally                      	0x00025a14 0x1000 + 150036
6   Verbally                      	0x00007c00 0x1000 + 27648
7   CoreFoundation                	0x0000e56a -[NSObject(NSObject) performSelector:withObject:withObject:] + 18
8   UIKit                         	0x0001cec2 -[UIApplication sendAction:to:from:forEvent:] + 78
9   UIKit                         	0x0001ce62 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
10  UIKit                         	0x0001ce34 -[UIControl sendAction:to:forEvent:] + 32
11  UIKit                         	0x0001cb86 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 350
12  UIKit                         	0x0001d41c -[UIControl touchesEnded:withEvent:] + 336
13  UIKit                         	0x0001bbee -[UIWindow _sendTouchesForEvent:] + 362
14  UIKit                         	0x0001b568 -[UIWindow sendEvent:] + 256
15  UIKit                         	0x0000430c -[UIApplication sendEvent:] + 292
16  UIKit                         	0x00003c4c _UIApplicationHandleEvent + 5084
17  GraphicsServices              	0x00004e70 PurpleEventCallback + 660
18  CoreFoundation                	0x00075a90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
19  CoreFoundation                	0x00077838 __CFRunLoopDoSource1 + 160
20  CoreFoundation                	0x00078606 __CFRunLoopRun + 514
21  CoreFoundation                	0x00008ebc CFRunLoopRunSpecific + 224
22  CoreFoundation                	0x00008dc4 CFRunLoopRunInMode + 52
23  GraphicsServices              	0x00004418 GSEventRunModal + 108
24  GraphicsServices              	0x000044c4 GSEventRun + 56
25  UIKit                         	0x0002ed62 -[UIApplication _run] + 398
26  UIKit                         	0x0002c800 UIApplicationMain + 664
27  Verbally                      	0x00002e2c 0x1000 + 7724
28  Verbally                      	0x00002dec 0x1000 + 7660

Regression:

Notes:

I've posted a patch for this at https://github.com/chrispix/symbolicatecrash-fix, and attached the same files here, along with a sample partially symbolicated log.

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!