Xcode15 simulator iOS17 crash,but run mac (design for iPad) works fine.
SuperY opened this issue · 3 comments
SuperY commented
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: CTFontLegibilityWeightAttribute)'
*** First throw call stack:
(
0 CoreFoundation 0x00000001221d121e __exceptionPreprocess + 242
1 libobjc.A.dylib 0x000000012ec74894 objc_exception_throw + 48
2 CoreFoundation 0x0000000122240f2f -[__NSDictionaryM setObject:forKey:] + 1329
3 CoreFoundation 0x0000000122134388 -[NSMutableDictionary addEntriesFromDictionary:] + 292
4 CoreText 0x00000001227ba74e _ZNK17TDescriptorSource28CreateDescriptorForTextStyleEPK10__CFStringS2_S2_PK14__CFDictionary + 1024
5 CoreText 0x0000000122783c7b CTFontDescriptorCreateWithTextStyleAndAttributes + 65
6 SwiftUI 0x00000001364a412d block_destroy_helper.42 + 47192
7 SwiftUI 0x00000001372f3102 block_destroy_helper + 3574
8 SwiftUI 0x00000001368b04ca get_witness_table 7SwiftUI4ViewRzSyRd__r__lAA15ModifiedContentVyxAA21_TraitWritingModifierVyAA20SectionIndexLabelKeyVGGAaBHPxAaBHD1__AiA0cH0HPyHCHCTm + 38270
9 SwiftUI 0x00000001364a2dc4 block_destroy_helper.42 + 42223
10 SwiftUI 0x00000001364a369a block_destroy_helper.42 + 44485
11 SwiftUI 0x0000000135ff7cb5 __swift_allocate_boxed_opaque_existential_1 + 15041
12 SwiftUI 0x00000001364a38d9 block_destroy_helper.42 + 45060
13 SwiftUI 0x00000001374e634e __swift_memcpy34_4 + 25856
14 SwiftUI 0x000000013644f2d5 __swift_mutable_project_boxed_opaque_existential_1 + 3397
15 SwiftUI 0x00000001368e9554 __swift_memcpy20_4 + 6444
16 SwiftUI 0x00000001368e90d8 __swift_memcpy20_4 + 5296
17 SwiftUI 0x00000001368e913c __swift_memcpy20_4 + 5396
18 SwiftUI 0x00000001368e8e1c __swift_memcpy20_4 + 4596
19 SwiftUI 0x00000001368e87b5 __swift_memcpy20_4 + 2957
20 SwiftUI 0x0000000136e09da6 __swift_memcpy18_2 + 17040
21 SwiftUI 0x000000013650396e objectdestroyTm + 34603
22 SwiftUI 0x0000000136e09bba __swift_memcpy18_2 + 16548
23 SwiftUI 0x0000000136e09985 __swift_memcpy18_2 + 15983
24 SwiftUI 0x0000000136e07479 __swift_memcpy18_2 + 6499
25 SwiftUI 0x0000000136c3b6e5 block_destroy_helper + 151365
26 SwiftUI 0x000000013704fbc9 get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyADyxAA30_EnvironmentKeyWritingModifierVyAA10VisibilityOGGAA06_TraithI0VyAA016FormRowAccessoryjG0VGGAaBHPAjaBHPxAaBHD1__AiA0cI0HPyHCHC_AoaQHP 27 SwiftUI 0x00000001364fd750 objectdestroyTm + 9485
28 SwiftUI 0x0000000136b3920f _swift_stdlib_malloc_size + 42451
29 SwiftUI 0x0000000136b3893c _swift_stdlib_malloc_size + 40192
30 SwiftUI 0x00000001374b3451 __swift_memcpy146_8 + 160255
31 SwiftUI 0x00000001374ab19e __swift_memcpy146_8 + 126796
32 SwiftUI 0x00000001377ae814 __swift_memcpy116_8 + 85480
33 SwiftUI 0x00000001377ae85a __swift_memcpy116_8 + 85550
34 UIKitCore 0x00000001564d40b7 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2141
35 QuartzCore 0x000000012f4c6cd1 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 527
36 QuartzCore 0x000000012f4d2a8f _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 67
37 QuartzCore 0x000000012f3d4808 _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 706
38 QuartzCore 0x000000012f40ed5e _ZN2CA11Transaction6commitEv + 728
39 UIKitCore 0x0000000155e08732 _UIApplicationFlushRunLoopCATransactionIfTooLate + 70
40 UIKitCore 0x0000000155eda1f6 __processEventQueue + 9465
41 UIKitCore 0x0000000155ed02ce __eventFetcherSourceCallback + 163
42 CoreFoundation 0x000000012212dd63 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
43 CoreFoundation 0x000000012212dca5 __CFRunLoopDoSource0 + 157
44 CoreFoundation 0x000000012212d4a2 __CFRunLoopDoSources0 + 215
45 CoreFoundation 0x0000000122127bd7 __CFRunLoopRun + 919
46 CoreFoundation 0x000000012212745d CFRunLoopRunSpecific + 557
47 GraphicsServices 0x00000001414e6187 GSEventRunModal + 137
48 UIKitCore 0x0000000155e0a15a -[UIApplication _run] + 972
49 UIKitCore 0x0000000155e0ebc8 UIApplicationMain + 123
50 FaceApp 0x0000000102f2139f main + 63
51 dyld 0x000000011de513ee start_sim + 10
kean commented
Hi, can you please provide the steps to reproduce?
I'm running Xcode 15 Beta 6 and haven't seen any crashes on iOS.
SuperY commented
Yes, I tried the program in Example and it works fine.
I'm introducing too many libraries into my project and I am unsure which environment is causing it.
One thing I can confirm is that the device is fine, the emulator doesn't work properly.
SuperY commented
Added Objc Crash protection, problem solved for now.