Post

Replies

Boosts

Views

Activity

SwiftUI iOS app: crashes immediately on startup in AppDelegate in iOS 15
An unchanged App which run fine in < iOS 15 versions crashes directly on startup in iOS 15.0.1. Reason is unclear for me. Tried debugging in Xcode 13 - no hints at all. Has someone an idea? 2021-10-06 13:50:13.392174+0200 MyS&N[11966:313647] -[__NSSingleObjectArrayI stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x600001a38350 2021-10-06 13:50:13.468528+0200 MyS&N[11966:313647] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSSingleObjectArrayI stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x600001a38350' *** First throw call stack: ( 0   CoreFoundation                      0x00007fff203fbbb4 __exceptionPreprocess + 242 1   libobjc.A.dylib                     0x00007fff2019ebe7 objc_exception_throw + 48 2   CoreFoundation                      0x00007fff2040a821 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0 3   CoreFoundation                      0x00007fff204000bc ___forwarding___ + 1433 4   CoreFoundation                      0x00007fff204021e8 _CF_forwarding_prep_0 + 120 5   UIKitCore                           0x00007fff2501951a +[UIApplication _sanitizeBundleString:] + 83 6   UIKitCore                           0x00007fff250192bf __41+[UIApplication _applicationNameForMenus]_block_invoke + 443 7   libdispatch.dylib                   0x0000000104a5ec0c _dispatch_client_callout + 8 8   libdispatch.dylib                   0x0000000104a6016d _dispatch_once_callout + 66 9   UIKitCore                           0x00007fff25019102 +[UIApplication _applicationNameForMenus] + 97 10  UIKitCore                           0x00007fff25402b54 __42+[UIMenu(DefaultMenus) _defaultMenuTitles]_block_invoke + 80 11  libdispatch.dylib                   0x0000000104a5ec0c _dispatch_client_callout + 8 12  libdispatch.dylib                   0x0000000104a6016d _dispatch_once_callout + 66 13  UIKitCore                           0x00007fff25402b02 +[UIMenu(DefaultMenus) _defaultMenuTitles] + 46 14  UIKitCore                           0x00007fff254032d9 +[UIMenu(DefaultMenus) _defaultInlineMenuWithIdentifier:children:] + 70 15  UIKitCore                           0x00007fff2439472b -[_UIMainMenuSystem _init] + 131 16  UIKitCore                           0x00007fff24394693 __34+[_UIMainMenuSystem _sharedSystem]_block_invoke + 29 17  libdispatch.dylib                   0x0000000104a5ec0c _dispatch_client_callout + 8 18  libdispatch.dylib                   0x0000000104a6016d _dispatch_once_callout + 66 19  UIKitCore                           0x00007fff24394674 +[_UIMainMenuSystem _sharedSystem] + 97 20  UIKitCore                           0x00007fff2501e6d2 -[UIApplication _keyCommands] + 96 21  UIKitCore                           0x00007fff25034368 -[UIResponder _enumerateKeyCommandsInChainWithOptions:usingBlock:] + 674 22  UIKitCore                           0x00007fff2501e150 -[UIApplication _updateSerializableKeyCommandsForResponder:] + 199 23  UIKitCore                           0x00007fff24ff8026 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 733 24  UIKitCore                           0x00007fff24ff9a91 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 4115 25  UIKitCore                           0x00007fff24fff403 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1221 26  UIKitCore                           0x00007fff245806a1 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 179 27  UIKitCore                           0x00007fff24ffbab6 -[UIApplication _compellApplicationLaunchToCompleteUnconditionally] + 59 28  UIKitCore                           0x00007fff24ffbe55 -[UIApplication _run] + 914 29  UIKitCore                           0x00007fff25000a53 UIApplicationMain + 101 30  SwiftUI                             0x00007fff5cb0d6a3 $s7SwiftUI17KitRendererCommon33_ACC2C5639A7D76F611E170E831FCA491LLys5NeverOyXlXpFAESpySpys4Int8VGSgGXEfU_ + 196 31  SwiftUI                             0x00007fff5cb0d5dd $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 148 32  SwiftUI                             0x00007fff5c4eece1 $s7SwiftUI3AppPAAE4mainyyFZ + 61 33  MyS&N                               0x0000000103a236ae $s5MyS_N0A5SNAppV5$mainyyFZ + 30 34  MyS&N                               0x0000000103a23729 main + 9 35  dyld                                0x00000001048dbe1e start_sim + 10 36  ???                                 0x0000000000000001 0x0 + 1 ) libc++abi: terminating with uncaught exception of type NSException dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/markusmalik/Library/Developer/Xcode/DerivedData/MySN-eqsiruneqfkgiyfezjyjnfrjofbi/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/markusmalik/Library/Developer/Xcode/DerivedData/MySN-eqsiruneqfkgiyfezjyjnfrjofbi/Build/Products/Debug-iphonesimulator:/Users/markusmalik/Library/Developer/Xcode/DerivedData/MySN-eqsiruneqfkgiyfezjyjnfrjofbi/Build/Products/Debug-iphonesimulator/PackageFrameworks *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSSingleObjectArrayI stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x600001a38350' terminating with uncaught exception of type NSException CoreSimulator 776.3 - Device: iPhone Xʀ (EE1B1F60-043B-4FF8-A2FD-3F82DA858B50) - Runtime: iOS 15.0 (19A339) - DeviceType: iPhone Xʀ code-block
7
0
2.7k
Oct ’21