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-thread0 CoreFoundation 0x183e0c6f4 CFStringGetLength + 81 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:] + 3607 UIKitCore 0x18681d290 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 51368 UIKitCore 0x186822cec -[UIApplication _runWithMainScene:transitionContext:completion:] + 12449 UIKitCore 0x185e78c74 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 15210 UIKitCore 0x1863e6f9c _UIScenePerformActionsWithLifecycleActionMask + 11211 UIKitCore 0x185e7980c __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 22412 UIKitCore 0x185e79214 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 30013 UIKitCore 0x185e7961c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 76814 UIKitCore 0x185e78e58 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 34015 UIKitCore 0x185e813a4 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 19616 UIKitCore 0x1862f360c +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 89217 UIKitCore 0x1863ff6c4 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 27218 UIKitCore 0x185e8109c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 38419 UIKitCore 0x185ca85a0 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 77620 UIKitCore 0x185ca6f14 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 25621 UIKitCore 0x185ca81c8 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 24822 UIKitCore 0x186820e8c -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 57223 UIKitCore 0x18631ce38 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 38824 FrontBoardServices 0x193bd43bc -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 43225 FrontBoardServices 0x193bffd04 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.200 + 12826 FrontBoardServices 0x193be34a0 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 24027 FrontBoardServices 0x193bff9c8 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 37228 libdispatch.dylib 0x183a5ddb0 _dispatch_client_callout + 2029 libdispatch.dylib 0x183a61738 _dispatch_block_invoke_direct + 26830 FrontBoardServices 0x193c28250 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 4831 FrontBoardServices 0x193c27ee0 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 44832 FrontBoardServices 0x193c28434 -[FBSSerialQueue _performNextFromRunLoopSource] + 3233 CoreFoundation 0x183de576c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 2834 CoreFoundation 0x183de5668 __CFRunLoopDoSource0 + 20835 CoreFoundation 0x183de4960 __CFRunLoopDoSources0 + 26836 CoreFoundation 0x183ddea8c __CFRunLoopRun + 82437 CoreFoundation 0x183dde21c CFRunLoopRunSpecific + 60038 GraphicsServices 0x19b9aa784 GSEventRunModal + 16439 UIKitCore 0x18681eee8 -[UIApplication _run] + 107240 UIKitCore 0x18682475c UIApplicationMain + 16841 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"