'Crash in iOS App on Apple Silicon M1 - DictionaryServices.framework/DictionaryServices' (no such file) -
I am getting an crash log when accessing the UIReferenceLibraryViewController of my iOS app that has been built as a native app on an Apple Silicon M1 Mac. It works perfectly well on the simulator and on an iOS device.
Does anybody know what's going on here?
2022-03-02 10:18:28.309112+0900 MyApp[65753:847988] [General] dlopen(/System/Library/PrivateFrameworks/DictionaryServices.framework/DictionaryServices, 0x0001): tried: '/Build/Products/Debug-iphoneos/DictionaryServices.framework/DictionaryServices' (no such file), '/Build/Products/Debug-iphoneos/PackageFrameworks/DictionaryServices.framework/DictionaryServices' (no such file), '/System/iOSSupport/System/Library/PrivateFrameworks/DictionaryServices.framework/DictionaryServices' (no such file), '/System/Library/PrivateFrameworks/DictionaryServices.framework/DictionaryServices' (no such file), '/System/Library/Frameworks/DictionaryServices.framework/DictionaryServices' (no such file)
dlopen(/System/Library/PrivateFrameworks/DictionaryServices.framework/Contents/MacOS/DictionaryServices, 0x0001): tried: '/Build/Products/Debug-iphoneos/DictionaryServices.framework/Contents/MacOS/DictionaryServices' (no such file), '/Build/Products/Debug-iphoneos/PackageFrameworks/DictionaryServices.framework/Contents/MacOS/DictionaryServices' (no such file), '/System/iOSSupport/System/Library/PrivateFrameworks/DictionaryServices.framework/Contents/MacOS/DictionaryServices' (no such file), '/System/Library/PrivateFrameworks/DictionaryServices.framework/Contents/MacOS/DictionaryServices' (no such file), '/System/Library/Frameworks/DictionaryServices.framework/Contents/MacOS/DictionaryServices' (no such file)
2022-03-02 10:18:28.317726+0900 MyApp[65753:847988] [General] (
0 CoreFoundation 0x000000019e50c1cc __exceptionPreprocess + 240
1 libobjc.A.dylib 0x000000019e25d7b8 objc_exception_throw + 60
2 Foundation 0x000000019f47a840 -[NSMutableDictionary(NSMutableDictionary) initWithContentsOfFile:] + 0
3 UIKitCore 0x00000001c5f7b42c DictionaryServicesLibrary + 280
4 UIKitCore 0x00000001c5f7b574 __getDCSDictionaryAssetGetAssetTypeSymbolLoc_block_invoke + 24
5 UIKitCore 0x00000001c5f7a4ec -[_UIDictionaryManager _dictionaryAssetType] + 140
6 UIKitCore 0x00000001c5f7a7cc -[_UIDictionaryManager _availableDictionaryAssets] + 60
7 UIKitCore 0x00000001c5f7a8d4 -[_UIDictionaryManager _allAvailableDefinitionDictionaries] + 72
8 UIKitCore 0x00000001c5f7a09c -[_UIDictionaryManager init] + 72
9 UIKitCore 0x00000001c5f7a0dc +[_UIDictionaryManager assetManager] + 20
10 UIKitCore 0x00000001c5f7614c -[UIReferenceLibraryViewController initWithTerm:] + 252
11 BookLive! 0x0000000104a67fc0 -[BLDictionaryViewController tableView:didSelectRowAtIndexPath:] + 632
12 UIKitCore 0x00000001c67b4ef0 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:isCellMultiSelect:deselectPrevious:] + 1516
13 UIKitCore 0x00000001c5ab425c -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 116
14 UIKitCore 0x00000001c5bbc0d0 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 272
15 UIKitCore 0x00000001c6a1dde0 -[_UIAfterCACommitBlock run] + 72
16 UIKitCore 0x00000001c6a1e2fc -[_UIAfterCACommitQueue flush] + 192
17 UIKitCore 0x00000001c592a294 _runAfterCACommitDeferredBlocks + 644
18 UIKitCore 0x00000001c5929d34 _cleanUpAfterCAFlushAndRunDeferredBlocks + 132
19 UIKitCore 0x00000001c5929c28 _afterCACommitHandler + 36
20 CoreFoundation 0x000000019e48be4c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
21 CoreFoundation 0x000000019e48bc98 __CFRunLoopDoObservers + 572
22 CoreFoundation 0x000000019e48a788 CFRunLoopRunSpecific + 684
23 HIToolbox 0x00000001a701cf68 RunCurrentEventLoopInMode + 292
24 HIToolbox 0x00000001a701cbf4 ReceiveNextEventCommon + 320
25 HIToolbox 0x00000001a701ca9c _BlockUntilNextEventMatchingListInModeWithFilter + 72
26 AppKit 0x00000001a0fe0ce0 _DPSNextEvent + 844
27 AppKit 0x00000001a0fdf584 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1332
28 AppKit 0x00000001a0fd15a4 -[NSApplication run] + 596
29 AppKit 0x00000001a0fa2c78 NSApplicationMain + 1064
30 AppKit 0x00000001a1279084 +[NSWindow _savedFrameFromString:] + 0
31 UIKitMacHelper 0x00000001b39899ac UINSApplicationMain + 1280
32 UIKitCore 0x00000001c5916b28 UIApplicationMain + 164
33 BookLive! 0x00000001048a6264 main + 104
34 dyld 0x0000000106b010f4 start + 520
)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|