This problem does not occur to all users (approximately one in a thousand), but the user who reinstalls the app still crashes in the same place.
I have tried several methods (such as using different versions of xcode build App), but still not solved...
And all the people around me who use iPhone can’t reproduce this problem, which also makes testing difficult
Does anyone have any ideas? Or how should I solve it?
Crash: EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
Code Block Crashed: com.apple.main-thread 0 CoreFoundation 0x183e0c6f4 CFStringGetLength + 8 1 MY_APP 0x10066ca80 CGPKCS5_PBKDF2_gen_keyiv + 3082 (CGCryptoLib.c:3082) 2 MY_APP 0x100578194 +[MOTPs NewTransfer:bEncrypt:] + 93 (MOTPs.m:93) 3 MY_APP 0x1005773e4 +[Profile getProfileArray] + 674 (Profile.m:674) 4 MY_APP 0x100543718 -[AppDelegate updateLogo] + 88 (AppDelegate.m:88) 5 MY_APP 0x10054365c -[AppDelegate application:didFinishLaunchingWithOptions:] + 80 (AppDelegate.m:80) 6 UIKitCore 0x18681b228 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 360 7 UIKitCore 0x18681d290 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 5136 8 UIKitCore 0x186822cec -[UIApplication _runWithMainScene:transitionContext:completion:] + 1244 9 UIKitCore 0x185e78c74 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152 10 UIKitCore 0x1863e6f9c _UIScenePerformActionsWithLifecycleActionMask + 112 11 UIKitCore 0x185e7980c __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 224 12 UIKitCore 0x185e79214 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 300 13 UIKitCore 0x185e7961c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 768 14 UIKitCore 0x185e78e58 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340 15 UIKitCore 0x185e813a4 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 196 16 UIKitCore 0x1862f360c +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892 17 UIKitCore 0x1863ff6c4 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 272 18 UIKitCore 0x185e8109c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384 19 UIKitCore 0x185ca85a0 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 776 20 UIKitCore 0x185ca6f14 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256 21 UIKitCore 0x185ca81c8 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 248 22 UIKitCore 0x186820e8c -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 572 23 UIKitCore 0x18631ce38 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388 24 FrontBoardServices 0x193bd43bc -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 432 25 FrontBoardServices 0x193bffd04 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.200 + 128 26 FrontBoardServices 0x193be34a0 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 27 FrontBoardServices 0x193bff9c8 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372 28 libdispatch.dylib 0x183a5ddb0 _dispatch_client_callout + 20 29 libdispatch.dylib 0x183a61738 _dispatch_block_invoke_direct + 268 30 FrontBoardServices 0x193c28250 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48 31 FrontBoardServices 0x193c27ee0 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 448 32 FrontBoardServices 0x193c28434 -[FBSSerialQueue _performNextFromRunLoopSource] + 32 33 CoreFoundation 0x183de576c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 34 CoreFoundation 0x183de5668 __CFRunLoopDoSource0 + 208 35 CoreFoundation 0x183de4960 __CFRunLoopDoSources0 + 268 36 CoreFoundation 0x183ddea8c __CFRunLoopRun + 824 37 CoreFoundation 0x183dde21c CFRunLoopRunSpecific + 600 38 GraphicsServices 0x19b9aa784 GSEventRunModal + 164 39 UIKitCore 0x18681eee8 -[UIApplication _run] + 1072 40 UIKitCore 0x18682475c UIApplicationMain + 168 41 MOTP Client 0x100543328 main + 16 (main.m:16) 42 libdyld.dylib 0x183a9e6b0 start + 4
Code Block Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
This indicates that your app crash because it tried to referenced NULL.
Code Block 0 CoreFoundation … CFStringGetLength + 8 (CFString.c:2396) 1 MOTP Client … CGPKCS5_PBKDF2_gen_keyiv + 200 (CGCryptoLib.c:3082)
Frame 0 shows that it crashed in CFStringGetLength. That function only has one parameter, the string itself, so it’s likely that was nil. So you then need to look to its caller, that is, frame 1. This is your code, and you should debug things from there. Look at line 3082 of CGCryptoLib.c and work back through the code to find out where the nil string came from.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"