Crash affecting iOS 15

Our application is currently crashing in production for all devices running iOS 15. If a developer builds that application directly to a device running iOS 15, the app will work as normal. If that same developer downloads the application via the App Store or TestFlight, the app will immediately crash when launched.

Can someone please help us debug this issue?

Thanks,  

Crashed: com.apple.main-thread
0 libswiftCore.dylib       0x18736afd4 swift::TargetMetadata<swift::InProcess>::isCanonicalStaticallySpecializedGenericMetadata() const + 208
1 libswiftCore.dylib       0x187377428 swift_checkMetadataState + 44
2 libswiftCore.dylib       0x1873996ac getSuperclassForMaybeIncompleteMetadata(swift::TargetMetadata<swift::InProcess> const*, __swift::__runtime::llvm::Optional<swift::MetadataState>) + 252
3 libswiftCore.dylib       0x187398c40 swift_conformsToProtocolImpl(swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolDescriptor<swift::InProcess> const*) + 276
4 Example            0x10413f1f0 dynamic_cast_existential_1_conditional + 4331663856 (<compiler-generated>:4331663856)
5 Example            0x10413ed24 $sSo13UIApplicationC5TraceE11bitrise_run33_576ADDAC6A3828D05B930398325D847FLL_WZ + 67 (SwiftOnlyLoad.swift:67)
6 libdispatch.dylib       0x1823d35b0 _dispatch_client_callout + 20
7 libdispatch.dylib       0x1823d4e64 _dispatch_once_callout + 32
8 Example            0x10413ee34 UIApplication.next.getter + 52 (SwiftOnlyLoad.swift:52)
9 Example            0x10413edbc @objc UIApplication.next.getter + 4331662780 (<compiler-generated>:4331662780)
10 UIKitCore           0x184dbb2a4 -[UIResponder _containsResponder:] + 72
11 UIKitCore           0x184dfb288 -[UIApplication _shouldUpdateSerializableKeyCommandsForResponder:] + 184
12 UIKitCore           0x184cccbd0 -[UIApplication _updateSerializableKeyCommandsForResponder:] + 68
13 UIKitCore           0x184cff550 -[UIViewController _addChildViewController:performHierarchyCheck:notifyWillMove:] + 548
14 UIKitCore           0x185008ac8 -[UINavigationController _setViewControllers_7_0:transition:animated:operation:] + 1564
15 UIKitCore           0x18502fa00 -[UINavigationController _setViewControllers:transition:animated:operation:] + 348
16 UIKitCore           0x184e1db3c __54-[UINavigationController setViewControllers:animated:]_block_invoke + 1156
17 UIKitCore           0x184e32028 -[UINavigationController setViewControllers:animated:] + 856
18 Example            0x104281f40 InboxTabCoordinator.init() + 865644 (<compiler-generated>:865644)
19 Example            0x10456e788 MainTabController.setTabs() + 3931572 (<compiler-generated>:3931572)
20 Example            0x10456e630 MainTabController.viewDidLoad() + 37 (MainTabController.swift:37)
21 Example            0x10456e69c @objc MainTabController.viewDidLoad() + 3931336 (<compiler-generated>:3931336)
22 UIKitCore           0x184f6e4c8 -[UITabBarController initWithNibName:bundle:] + 200
23 Example            0x10456f874 specialized MainTabController.init(nibName:bundle:) + 3935904 (<compiler-generated>:3935904)
24 Example            0x10456f214 @objc MainTabController.init(nibName:bundle:) + 3934272 (<compiler-generated>:3934272)
25 Example            0x1044ef3ec specialized StartupCoordinator.start(window:launchOptions:) + 3410456 (<compiler-generated>:3410456)
26 Example            0x10459e5ec @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 4127768 (<compiler-generated>:4127768)
27 UIKitCore           0x184e6abe4 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 356
28 UIKitCore           0x1850545ac -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3504
29 UIKitCore           0x18503d398 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1208
30 UIKitCore           0x184e98e38 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152
31 UIKitCore           0x184cf0e0c _UIScenePerformActionsWithLifecycleActionMask + 104
32 UIKitCore           0x184e1c200 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 224
33 UIKitCore           0x184f3d254 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 248
34 UIKitCore           0x18517fa2c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 760
35 UIKitCore           0x18510aae4 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340
36 UIKitCore           0x184cf1c10 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 196
37 UIKitCore           0x184db1d78 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892
38 UIKitCore           0x184cf3ad4 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276
39 UIKitCore           0x184dde688 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384

Could you show some coe: appDidFinishLaunching and MainTabController.viewDidLoad ?

Hey, were you able to resolve the issue? I am experiencing the same - the app works when running from XCode but crashes if downloaded from TestFlight or AppStore..

Our application was using the Trace add on from Bitrise, which is not compatible with iOS 15. If you and your team use Bitrise, I advise that you remove the Trace integration from your workflow. Once removed your app will function as normal. If you are not using Bitrise, I'm not sure how to help. Best of luck.

Hey, just go to

  1. Edit scheme... --> Run ---> Build Configuration
  2. and change your build configurations from debug to release and run your app on phone.

now release configuration will be working in debug mode and you will get to know where crash actually exists.

I'd the same issue and i found and fixed the issue by doing this.

Crash affecting iOS 15
 
 
Q