Consider this:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
A SIGTRAP
means your app trapped, that is, it crashed itself because it detected some sort of consistency problem. The next step is to look at the backtrace of the crashing thread:
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib … _assertionFailure(_:_:file:line:flags:) + 312
1 libswiftCore.dylib … _assertionFailure(_:_:file:line:flags:) + 312
2 DailyGravy … 0x104080000 + 127616
3 DailyGravy … 0x104080000 + 126292
4 libdispatch.dylib … _dispatch_client_callout + 20
5 libdispatch.dylib … _dispatch_once_callout + 32
6 DailyGravy … 0x104080000 + 177632
7 DailyGravy … 0x104080000 + 172632
8 DailyGravy … 0x104080000 + 168216
9 DailyGravy … 0x104080000 + 214596
10 SwiftUI … 0x1c55df000 + 953904
11 SwiftUI … 0x1c55df000 + 249840
12 SwiftUI … 0x1c55df000 + 953904
13 SwiftUI … 0x1c55df000 + 116060
14 SwiftUI … 0x1c55df000 + 789488
15 SwiftUI … 0x1c55df000 + 194724
16 SwiftUI … 0x1c55df000 + 210728
17 UIKitCore … -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1980
Frames 1 through 0 confirm that you tripped some sort of Swift assert. Frame 2 shows that this was in your code. Frames 5 through 4 show that this was the result of a dispatch_once
call. And frame 17 shows that your code was running in response to a UIKit layout request.
The next step here is to symbolicate your log. For advice on that, see Adding Identifiable Symbol Names to a Crash Report.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"