After update to Xcode 7.3, App crashes before main() is executed

Originator:cruinh
Number:rdar://25363084 Date Originated:3-25-2016
Status:Open Resolved:
Product:Developer Tools Product Version:7.3
Classification: Reproducible:Always
 
Our existing app, which was running in Xcode 7.2.1 now crashes before any of its code gets executed, specifically when connecting a physical iPhone to the computer, and debugging the code on that device.  

The project is very large and makes use of both objective-c Cocoapods and Swift dynamic frameworks.

Result of lldb "thread backtrace" command:

thread #2: tid = 0x525f0, 0x00000001940784c8 libobjc.A.dylib`realizeClass(objc_class*​) + 1036, queue = 'gputools.DYKeyedUnarchiver.0x103f62178', stop reason = EXC_BAD_ACCESS (code=2, address=0x101e49790)
 ​* frame #0: 0x00000001940784c8 libobjc.A.dylib`realizeClass(objc_class*​) + 1036
   frame #1: 0x0000000194078b04 libobjc.A.dylib`realizeAllClasses() + 96
   frame #2: 0x000000019407b76c libobjc.A.dylib`objc_copyClassList + 152
   frame #3: 0x0000000103f31728 GPUToolsCore`dy_copy_subclasses + 224
   frame #4: 0x0000000103f31a30 GPUToolsCore`__54+[DYKeyedUnarchiver addPermanentlyAllowedBaseClasses:]_block_invoke11 + 232
   frame #5: 0x0000000103ec8fd4 libdispatch.dylib`_dispatch_call_block_and_release + 24
   frame #6: 0x0000000103ec8f94 libdispatch.dylib`_dispatch_client_callout + 16
   frame #7: 0x0000000103ed3db8 libdispatch.dylib`_dispatch_queue_drain + 780
   frame #8: 0x0000000103ecc2c4 libdispatch.dylib`_dispatch_queue_invoke + 132
   frame #9: 0x0000000103ed65d4 libdispatch.dylib`_dispatch_root_queue_drain + 772
   frame #10: 0x0000000103ed8248 libdispatch.dylib`_dispatch_worker_thread3 + 132
   frame #11: 0x00000001948d121c libsystem_pthread.dylib`_pthread_wqthread + 816
   frame #12: 0x00000001948d0ee0 libsystem_pthread.dylib`start_wqthread + 4

Steps to Reproduce:
1. Open project
2. Connect iPhone running iOS 9.3 (seen happening with iPhone 6, 6 Plus and 6s)
3. Select a scheme for a development build
4. Select the device to run on
5. Click the Run button


Expected Results:
App should launch normally

Actual Results:
App crashes as described above

Version:
Xcode 7.3
OSX 10.11.4

Notes:
We are unable to provide a copy of the crashing Xcode project at this time, but wanted to provide what information we can.

Configuration:
Seen happening in multiple situations when using Xcode 7.3.  iOS device was either a iPhone 6 (iOS 9.3), iPhone 6 Plus (iOS 8), or iPhone 6s (iOS 9.3)

Comments

Apple may be working on a fix...

This seems to be related:
https://bugs.swift.org/browse/SR-1055

Same happening with me also. It runs fine in simulator with iOS 9.3 but crashes on device.


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!