App crashes on Launch

My app crashes on launch, please any help with understanding the source will be appreciated.

here is the crash log.

Date/Time: 2022-06-29 04:09:18.2221 +0100 Launch Time: 2022-06-29 04:09:18.0761 +0100 OS Version: iPhone OS 15.5 (19F77) Release Type: User Baseband Version: 2.54.02 Report Version: 104

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0

Application Specific Information: abort() called

Kernel Triage: VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage

Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x1bbf76b38 __pthread_kill + 8 1 libsystem_pthread.dylib 0x1f5ca63bc pthread_kill + 268 2 libsystem_c.dylib 0x18f4e7524 abort + 168 3 Flutter 0x103dffd14 0x103afc000 + 3161364 4 Flutter 0x103dffe3c 0x103afc000 + 3161660 5 Flutter 0x10404ecc4 0x103afc000 + 5582020 6 Flutter 0x103eebeb4 0x103afc000 + 4128436 7 Flutter 0x103b0d0c4 0x103afc000 + 69828 8 Flutter 0x103b26458 0x103afc000 + 173144 9 Flutter 0x103b26294 0x103afc000 + 172692 10 UIKitCore 0x186cf68b4 -[UINib instantiateWithOwner:options:] + 2284 11 UIKitCore 0x186879468 -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 284 12 UIKitCore 0x186879300 -[UIStoryboard _instantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 128 13 UIKitCore 0x18687ca1c -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 184 14 UIKitCore 0x1868f63c4 -[UIApplication _loadMainInterfaceFile] + 280 15 UIKitCore 0x186cb7024 -[UIApplication _runWithMainScene:transitionContext:completion:] + 936 16 UIKitCore 0x186b14d34 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152 17 UIKitCore 0x18696f3b4 _UIScenePerformActionsWithLifecycleActionMask + 104 18 UIKitCore 0x186a99d90 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 216 19 UIKitCore 0x186bb9aa0 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 248 20 UIKitCore 0x186df8764 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 772 21 UIKitCore 0x186d83d14 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340 22 UIKitCore 0x1869701a0 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 196 23 UIKitCore 0x186a300d8 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892 24 UIKitCore 0x1869720a4 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276 25 UIKitCore 0x186a5c244 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384 26 UIKitCore 0x186ee0e60 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.615 + 776 27 UIKitCore 0x1869a0484 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256 28 UIKitCore 0x1869e3cc4 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 288 29 UIKitCore 0x186b19b38 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 584 30 UIKitCore 0x186a5a508 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388 31 FrontBoardServices 0x1965eb294 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 440 32 FrontBoardServices 0x196611090 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.215 + 128 33 FrontBoardServices 0x1965cc308 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 34 FrontBoardServices 0x1965cd958 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372 35 libdispatch.dylib 0x184048a30 _dispatch_client_callout + 20 36 libdispatch.dylib 0x18404c4e0 _dispatch_block_invoke_direct + 264 37 FrontBoardServices 0x1965cdc70 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 48 38 FrontBoardServices 0x1965cd040 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220 39 FrontBoardServices 0x1965d1700 -[FBSSerialQueue _performNextFromRunLoopSource] + 28 40 CoreFoundation 0x184403414 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 41 CoreFoundation 0x1844141a0 __CFRunLoopDoSource0 + 208 42 CoreFoundation 0x18434d6f8 __CFRunLoopDoSources0 + 368 43 CoreFoundation 0x18435305c __CFRunLoopRun + 828 44 CoreFoundation 0x184366bc8 CFRunLoopRunSpecific + 600 45 GraphicsServices 0x1a049a374 GSEventRunModal + 164 46 UIKitCore 0x186cd6648 -[UIApplication _run] + 1100 47 UIKitCore 0x186a57d90 UIApplicationMain + 364 48 Runner 0x1005d0254 main + 64 49 dyld 0x101171ce4 start + 520

Hi, I have the same problem Attached part of the log

{
  "uptime" : 570000,
  "procLaunch" : "2022-06-30 11:59:46.9164 +0300",
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "iPhone11,8",
  "procStartAbsTime" : 13741455420367,
  "coalitionID" : 2976,
  "osVersion" : {
    "isEmbedded" : true,
    "train" : "iPhone OS 15.5",
    "releaseType" : "User",
    "build" : "19F77"
  },
  "captureTime" : "2022-06-30 12:00:07.8271 +0300",
  "incident" : "EAA95AA7-22A8-403B-B63E-2E2FDAFBEB97",
  "bug_type" : "309",
  "pid" : 85267,
  "procExitAbsTime" : 13741957188011,
  "cpuType" : "ARM-64",
  "procName" : "Runner",
  "procPath" : "\/private\/var\/containers\/Bundle\/Application\/61F75CBC-F25C-4857-B8AD-2DEDDE0F246D\/Runner.app\/Runner",
  "bundleInfo" : {"CFBundleShortVersionString":"1.0.2","CFBundleVersion":"208","CFBundleIdentifier":"com.wonderJewel001","DTAppStoreToolsBuild":"13F100"},
  "storeInfo" : {"itemID":"1620704381","storeCohortMetadata":"2|date=1656577800000&sf=143491&tid=a578fdd4ea46e937c9e07f97c62a4bcf61705898772c1e9cc4dc406023261a43&ttype=i","entitledBeta":true,"deviceIdentifierForVendor":"43A94E71-C39F-43D0-B633-ACE441C6BF86","softwareVersionExternalIdentifier":"92478408","applicationVariant":"1:iPhone11,8:15","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.wonderJewel001",
  "isBeta" : 1,
  "basebandVersion" : "4.04.02",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL"},
  "termination" : {"code":2343432205,"flags":6,"namespace":"FRONTBOARD","reasons":["<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application<com.wonderJewel001>:85267 exhausted real (wall clock) time allowance of 19.30 seconds","ProcessVisibility: Foreground","ProcessState: Running","WatchdogEvent: scene-create","WatchdogVisibility: Foreground","WatchdogCPUStatistics: (","\"Elapsed total CPU time (seconds): 31.070 (user 31.070, system 0.000), 26% CPU\",","\"Elapsed application CPU time (seconds): 1.226, 1% CPU\"",") reportType:CrashLog maxTerminationResistance:Interactive>"]},
  "ktriageinfo" : "VM - pmap_enter failed with resource shortage\nVM - pmap_enter failed with resource shortage\nVM - pmap_enter failed with resource shortage\n",
  "faultingThread" : 0,

I had the same exception. There was a request for location permission in AppDelegate.swift and it was too much time. I removed it. I have permissions request in the main().

I have been able to solve this. The cause of the issue was that I was running my app on a device with IOS 15.5, but my Xcode SDK has not been updated to the latest version that has the IOS 15.5 SDK. All I did was update my XCODE, then I reinstall my app and it works perfectly.

Thank you, guys.

App crashes on Launch
 
 
Q