Errors/crashes On iOS build on awake: "Workspace afterlife assertion failed: Error Domain=RBSAssertionErrorDomain Code=2“

When I test on my iOS phone my app there is a crash, and the following errors appears on the Xcode logcat:

Sandbox: MyGame(1413) deny(1) sysctl-read kern.bootargs

[app<com.me.mygame(FAAE9BC2-308A-491A-904F-C3629D856FED)>:1413] Workspace afterlife assertion failed: Error Domain=RBSAssertionErrorDomain Code=2 “Specified target process does not exist” UserInfo={NSLocalizedFailureReason=Specified target process does not exist}

Scene FBSceneManager/sceneID:com.me.mygame-default update failed: <NSError: 0x283b4e0a0; domain: FBSceneErrorDomain; code: 1 (“operation-failed”); “Scene update failed.”> { NSUnderlyingError = <NSError: 0x283ba28b0; domain: FBWorkspaceScene; code: 1; “Client process exited.”>; }

Error loading /var/containers/Bundle/Application/12923636-FC1B-45E0-99E4-B6466C4DA7CF/MyGame.app/Frameworks/UnityFramework.framework/UnityFramework (142): dlopen(/var/containers/Bundle/Application/12923636-FC1B-45E0-99E4-B6466C4DA7CF/MyGame.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/AppleCoreNative.framework/AppleCoreNative Referenced from: /private/var/containers/Bundle/Application/12923636-FC1B-45E0-99E4-B6466C4DA7CF/MyGame.app/Frameworks/UnityFramework.framework/UnityFramework Reason: tried: ‘/usr/lib/swift/AppleCoreNative.framework/AppleCoreNative’ (no such file, not in dyld cache), ‘/private/preboot/Cryptexes/OS/usr/lib/swift/AppleCoreNative.framework/AppleCoreNative’ (no such file), ‘/private/var/containers/Bundle/Application/12923636-FC1B-45E0-99E4-B6466C4DA7CF/MyGame.app/Frameworks/AppleCoreNative.framework/AppleCoreNative’ (no such file), '/private/var/containers/Bundle/<…>

I state that: I have installed the Apple Gamekit and GameCore in the project, and also Admob and Firebase Analytics.

On Monobehaviour Start() method I make the call GKLocalPlayer.Authenticate().

I’m using Unity-2021-3-LTS.34f1.

Any ideas on how to fix it, or about what is the cause these errors?