Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug iOS Xcode Firebase Issue - Unable to load DLL 'FirebaseCppApp-11_1_0'.

Discussion in 'iOS and tvOS' started by khusro017, Jun 13, 2023.

  1. khusro017

    khusro017

    Joined:
    Jan 25, 2022
    Posts:
    1
    Error:
    Unable to load DLL 'FirebaseCppApp-11_1_0'. Tried the load the following dynamic libraries: Unable to load dynamic library '/FirebaseCppApp-11_1_0' because of 'Failed to open the requested dynamic library #1336

    Issue Details:
    I have tried multiple versions of firebase unity package. When i import the package in unity, it works fine in the unity editor and in the android devices. When i make a build for iOS device and run it in xcode with an iPhone attached, during initialization of the firebase, it throws the above issue.

    I have tried other versions as well and for each version, it showing the same error, just the version number changes i.e i tried v10.3.0 and it was showing the same error i.e unable to load dll FirebaseCppApp-10_3_0

    I removed the Library, Assets/Firebase, Assets/Plugins/iOS/Firebase, Assets/ExternalDependencyManager, Assets/Editor Default Resources but it throwing the same issue.

    I have added GoogleService-Info.plist.

    While it is initializing the firebase in iOS device, it throws the above issue.

    FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>
    {
    var dependencyStatus = task.Result;
    if (dependencyStatus == DependencyStatus.Available)
    {
    FirebaseApp app = FirebaseApp.DefaultInstance;​
    }
    else
    {
    UnityEngine.Debug.LogError(System.String.Format(
    "Could not resolve all Firebase dependencies: {0}", dependencyStatus));​
    }​

    });


    Development Environment
    • Unity editor version: 2022.1.21f1
    • Firebase Unity SDK version: 11_1_0
    • Source you installed the SDK: .unitypackage
    • Problematic Firebase Component: Database
    • Other Firebase Components in use: App (Core)
    • Additional SDKs you are using: None
    • Platform you are using the Unity editor on: Mac
    • Platform you are targeting: iOS
    • Scripting Runtime: IL2CPP
     

    Attached Files:

  2. Alex_qiang

    Alex_qiang

    Joined:
    Jun 8, 2019
    Posts:
    11
    H ello, I have the same question. Are you sovle it.
     
  3. Roman_34

    Roman_34

    Joined:
    Nov 1, 2018
    Posts:
    14
    I have some trouble:
    Crash in runtime:
    DllNotFoundException: Unable to load DLL 'FirebaseCppApp-10_4_0'. Tried the load the following dynamic libraries: Unable to load dynamic library '/FirebaseCppApp-10_4_0' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen(/FirebaseCppApp-10_4_0, 5): image not found

    when initializing. Help please!
     
  4. N30R1L37

    N30R1L37

    Joined:
    Mar 27, 2023
    Posts:
    1
    Same here - has anyone resolved/fixed this on their end?