Thanks. Does that mean that C++ code caused the crash? My app is written in pure Swift with a bridging header that only defines these constants needed for accessing the results of getattrlistbulk on iOS:
enum vtype { VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO, VBAD, VSTR,
VCPLX };
When causing a crash on the main thread with the following code
@main
class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
DispatchQueue.main.async {
fatalError()
}
}
}
I get this stacktrace in the crash report:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libswiftCore.dylib 0x1a06b906c _assertionFailure(_:_:file:line:flags:) + 592
1 problem2 0x100d1a8e4 closure #1 in AppDelegate.applicationDidFinishLaunching(_:) + 68 (AppDelegate.swift:19)
2 problem2 0x100d1a904 thunk for @escaping @callee_guaranteed () -> () + 28
3 libdispatch.dylib 0x1907fb750 _dispatch_call_block_and_release + 32
4 libdispatch.dylib 0x1907fd3e8 _dispatch_client_callout + 20
5 libdispatch.dylib 0x19080bbb8 _dispatch_main_queue_drain + 988
6 libdispatch.dylib 0x19080b7cc _dispatch_main_queue_callback_4CF + 44
7 CoreFoundation 0x190acead4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
8 CoreFoundation 0x190a8c258 __CFRunLoopRun + 1996
9 CoreFoundation 0x190a8b434 CFRunLoopRunSpecific + 608
10 HIToolbox 0x19b23519c RunCurrentEventLoopInMode + 292
11 HIToolbox 0x19b234e2c ReceiveNextEventCommon + 220
12 HIToolbox 0x19b234d30 _BlockUntilNextEventMatchingListInModeWithFilter + 76
13 AppKit 0x1942eacc8 _DPSNextEvent + 660
14 AppKit 0x194ae14d0 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 700
15 AppKit 0x1942ddffc -[NSApplication run] + 476
16 AppKit 0x1942b5240 NSApplicationMain + 880
17 problem2 0x100d1aacc specialized static NSApplicationDelegate.main() + 24 [inlined]
18 problem2 0x100d1aacc static AppDelegate.$main() + 24 (<compiler-generated>:10) [inlined]
19 problem2 0x100d1aacc main + 36
20 dyld 0x190623154 start + 2476
Or where you hinting at something different?