Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Authentication crash on iOS 14 devices #1221

Open
eatsports opened this issue Mar 24, 2025 · 5 comments
Open

[Bug] Authentication crash on iOS 14 devices #1221

eatsports opened this issue Mar 24, 2025 · 5 comments
Labels
api: auth needs-info Need information for the developer

Comments

@eatsports
Copy link

eatsports commented Mar 24, 2025

Description

The app crashes when calling Auth.signInAnonymously on iOS 14 devices, works fine on newer iOS versions, stacktrace provided below

Reproducing the issue

Call Auth.signInAnonymously on and iOS 14 device
Crashlog from Crashlytics:

swift::ResolveAsSymbolicReference::operator()(swift::Demangle::__runtime::SymbolicReferenceKind, swift::Demangle::__runtime::Directness, int, void const*)
SIGSEGV

      Crashed: com.google.firebase.auth.globalWorkQueue
      0  libswiftCore.dylib             0x313dbc swift::ResolveAsSymbolicReference::operator()(swift::Demangle::__runtime::SymbolicReferenceKind, swift::Demangle::__runtime::Directness, int, void const*) + 64
      1  libswiftCore.dylib             0x33170c swift::Demangle::__runtime::Demangler::demangleSymbolicReference(unsigned char) + 204
      2  libswiftCore.dylib             0x32e970 swift::Demangle::__runtime::Demangler::demangleType(__swift::__runtime::llvm::StringRef, std::__1::function<swift::Demangle::__runtime::Node* (swift::Demangle::__runtime::SymbolicReferenceKind, swift::Demangle::__runtime::Directness, int, void const*)>) + 184
      3  libswiftCore.dylib             0x31935c swift_getTypeByMangledNameImpl(swift::MetadataRequest, __swift::__runtime::llvm::StringRef, void const* const*, std::__1::function<swift::TargetMetadata<swift::InProcess> const* (unsigned int, unsigned int)>, std::__1::function<swift::TargetWitnessTable<swift::InProcess> const* (swift::TargetMetadata<swift::InProcess> const*, unsigned int)>) + 476
      4  libswiftCore.dylib             0x316d58 swift::swift_getTypeByMangledName(swift::MetadataRequest, __swift::__runtime::llvm::StringRef, void const* const*, std::__1::function<swift::TargetMetadata<swift::InProcess> const* (unsigned int, unsigned int)>, std::__1::function<swift::TargetWitnessTable<swift::InProcess> const* (swift::TargetMetadata<swift::InProcess> const*, unsigned int)>) + 540
      5  libswiftCore.dylib             0x316f6c swift_getTypeByMangledNameInContext + 132
      6  UnityFramework                 0x2a31268 __swift_instantiateConcreteTypeFromMangledName + 4391064168 (<compiler-generated>:4391064168)
      7  UnityFramework                 0x3734b08 closure #1 in Auth.signInAnonymously(completion:) + 74 (SignUpNewUserRequest.swift:74)
      8  UnityFramework                 0x2c578fc thunk for @escaping @callee_guaranteed @Sendable () -> () + 869092
      9  libdispatch.dylib              0x602b0 _dispatch_call_block_and_release + 24
      10 libdispatch.dylib              0x61298 _dispatch_client_callout + 16
      11 libdispatch.dylib              0x9a40 _dispatch_lane_serial_drain$VARIANT$mp + 612
      12 libdispatch.dylib              0xa518 _dispatch_lane_invoke$VARIANT$mp + 420
      13 libdispatch.dylib              0x13fac _dispatch_workloop_worker_thread + 712
      14 libsystem_pthread.dylib        0xb5bc _pthread_wqthread + 272
      15 libsystem_pthread.dylib        0xe86c start_wqthread + 8

Firebase Unity SDK Version

12.5.0

Unity editor version

2022.3.47f

Installation Method

.unitypackage

Problematic Firebase Component(s)

Authentication

Other Firebase Component(s) in use

Analytics, Remote Config, Crashlytics, Installations, Storage

Additional SDKs you are using

No response

Targeted Platform(s)

Apple Platforms

Unity editor platform

Mac

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

Relevant Log Output

If using CocoaPods for Apple platforms, the project's Podfile.lock

No response

@eatsports eatsports added new New issue. type: bug labels Mar 24, 2025
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@argzdev
Copy link

argzdev commented Mar 28, 2025

Thanks for reaching out, @eatsports. Could you share with us what Xcode version are you using?

@argzdev argzdev added the needs-info Need information for the developer label Mar 28, 2025
@eatsports
Copy link
Author

Xcode version is 16.2

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Mar 31, 2025
@argzdev
Copy link

argzdev commented Mar 31, 2025

This is odd, I took a look into Xcode release notes, it indicates that Xcode 16.2 includes SDKs for iOS 18.2, will not run apps built for iOS 14. It supports on-device debugging in iOS 15 and later, but not iOS 14. How are you testing on iOS 14? I'm guessing this could also be why this issue is coming up, but I'm not entirely sure.

Here's the full list of supported iOS versions according to the Xcode version.

@argzdev argzdev added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Mar 31, 2025
@zyf25333
Copy link

zyf25333 commented Apr 1, 2025

This is odd, I took a look into Xcode release notes, it indicates that Xcode 16.2 includes SDKs for iOS 18.2, will not run apps built for iOS 14. It supports on-device debugging in iOS 15 and later, but not iOS 14. How are you testing on iOS 14? I'm guessing this could also be why this issue is coming up, but I'm not entirely sure.

Here's the full list of supported iOS versions according to the Xcode version.

https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport

Check the target version and download the zip file from this website, and unzip it to path:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

like other folders.Restart the xcode and you can test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: auth needs-info Need information for the developer
Projects
None yet
Development

No branches or pull requests

4 participants