Search Issue Tracker

Fixed in 2020.1.X

Votes

1

Found in

2017.4

2018.4

2019.1

2019.2

2019.2.0f1

2019.3

2020.1

Issue ID

1188322

Regression

No

[iOS]Crash on libsystem_platform.dylib`_platform_strlen + 4 when using "Sign in with Apple" Unity Asset Store package for iOS 13

iOS

-

How to reproduce:
1. Open the attached TestSWAPac.zip project
2. Build for iOS and open the Xcode
3. Navigate to Signing and Capabilities-> Add "Sign with Apple" Capability
4. Navigate to Frameworks and Libraries-> Add "AuthenticationServices.framework"
5. Deploy the Xcode project to the device
6. Press "Sign in with Apple" Button
7. Complete the sign-in process
======Crash occurs======

Reproducible with: 2017.4.33f1, 2020.1.0a8

Reproducible with:
iPhone 8 Plus (iOS 13.1.2)

Note: On iPhone 11 (iOS 13.0) Sign in with Apple doesn't work and the error is thrown:
NewUnityProject[1424:1527747] [core] Authorization failed: Error Domain=AKAuthenticationError Code=-7026 "(null)" UserInfo={AKClientBundleID=com.test.vitaa}
Sign in with Apple login has completed.
UnityEngine.SignInWithApple.Callback:Invoke(CallbackArgs)
UnityEngine.SignInWithApple.SignInWithApple:LoginCompletedCallback(Int32, UserInfo)

First lines of the Stack trace:
frame #0: 0x0000000182fc6f44 libsystem_platform.dylib`_platform_strlen + 4
frame #1: 0x0000000102bebb48 NewUnityProject`il2cpp::vm::String::New(str="") at String.cpp:64:38 [opt]
frame #2: 0x0000000102530a14 NewUnityProject`::UserInfo_tC46F8D8850FF36FFAD9060EF32007B2A7F920041_marshal_pinvoke_back(marshaled=0x000000016d8ea760, unmarshaled=0x000000016d8ea6f0) at Assembly-CSharp.cpp:3011:26 [opt]
frame #3: 0x000000010253097c NewUnityProject`::ReversePInvokeWrapper_SignInWithApple_LoginCompletedCallback_m39681517EE7AD1B523A8926611CA6D22FA28A7C3(___result0=1, ___info1=<unavailable>) at Assembly-CSharp.cpp:1907:2 [opt]
* frame #4: 0x0000000102592354 NewUnityProject`-[UnitySignInWithApple authorizationController:didCompleteWithAuthorization:](self=0x0000000283f2fbe0, _cmd=<unavailable>, controller=<unavailable>, authorization=<unavailable>) at UnitySignInWithApple.m:94:13 [opt]

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.