firebase-unity-sdk: DllNotFoundException: FirebaseCppApp-11_2_0 assembly: type: member:(null)

[READ] For Firebase Unity SDK issues, please report to Firebase Unity open-source

Once you’ve read this section and determined that your issue is appropriate for this repository, please delete this section.

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2021.3.22f1
  • Firebase Unity SDK version: 11.2.0
  • Source you installed the SDK: auth (.unitypackage or Unity Package Manager)
  • Problematic Firebase Component: _____ (Auth, Database, etc.)
  • Other Firebase Components in use: _____ (Auth, Database, etc.)
  • Additional SDKs you are using: empty project (Facebook, AdMob, etc.)
  • Platform you are using the Unity editor on: Linux and Mac (Mac, Windows, or Linux)
  • Platform you are targeting: desktop (iOS, Android, and/or desktop)
  • Scripting Runtime: Mono (Mono, and/or IL2CPP)

[REQUIRED] Please describe the issue here:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

I get this error when I call any firebase functions in a project.

DllNotFoundException: FirebaseCppApp-11_2_0 assembly:<unknown assembly> type:<unknown type> member:(null) Firebase.AppUtilPINVOKE+SWIGExceptionHelper…cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:4087) Rethrow as TypeInitializationException: The type initializer for ‘SWIGExceptionHelper’ threw an exception. Firebase.AppUtilPINVOKE…cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:4107) Rethrow as TypeInitializationException: The type initializer for ‘Firebase.AppUtilPINVOKE’ threw an exception. Firebase.AppUtil.SetLogFunction (Firebase.LogUtil+LogMessageDelegate arg0) (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:4817) Firebase.LogUtil…ctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/app/src/LogUtil.cs:81) Firebase.LogUtil…cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/app/src/LogUtil.cs:37) Rethrow as TypeInitializationException: The type initializer for ‘Firebase.LogUtil’ threw an exception. Firebase.FirebaseApp…cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:2014) Rethrow as TypeInitializationException: The type initializer for ‘Firebase.FirebaseApp’ threw an exception. Firebase.Sample.Auth.UIHandler.Start () (at Assets/Firebase/Sample/Auth/UIHandler.cs:80)

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? What’s the issue repro rate? (eg 100%, 1/5 etc) 100%

What happened? How can we make the problem occur? This could be a description, log/console output, etc.

If you have a downloadable sample project that reproduces the bug you’re reporting, you will likely receive a faster response on your issue.

Relevant Code:

// TODO(you): code here to reproduce the problem

https://github.com/firebase/quickstart-unity/issues/1130 It seems that the compatibility of the Unity-SDK package cannot be maintained. In a Windows environment, it works fine.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 30 (5 by maintainers)

Most upvoted comments

I resolved this Issue on Mac by simply Going to the Folder

  1. Assets>Firebase>Plugins>x86_64
  2. Right-click on the FirebaseCppApp-11_2_0.bundle and select open with vs-code
  3. Select Open anyway on the prompt message. Once the file is opened in vs-code you can simply run the unity editor and it will work.

I got the same error on 11.5.0 version and I’ve upgraded to 11.6.0. Then I got the system warning “Cannot open ‘FirebaseCppApp-11_6_0.bundle’; the application is from an unidentified developer.” and this tutorial was the solution: https://www.youtube.com/watch?v=0AyHEyGx1-g

FirebaseCppApp 11 uses function getTimeZone in icu.dll (according Dependency Walker), that is missing on OS prior windows10. Copying icu.dll into folder with FirebaseCppApp-11.#.#.dll resolved the problem

не помогло

I have found a solution. Follow these steps -

  1. Remove Firebase and external library folder from Assets.
  2. Import again.
  3. Run Unity, you will get popup of unidentified developer. And you have only two options in popup so you can select to move to bin.
  4. Then in system preferences -> Allow bundle.
  5. Open Bin and drag and drop deleted bundle which is “FirebaseCppApp-11_6_0.bundle” to Assets in Unity.
  6. Make sure settings allow that bundle.
  7. Run Unity and BOOM…It will run project successfully!

I had this error for ANDROID and I fix it (I haven’t tested it for iOS jet) DllNotFoundException: FirebaseCppApp-11_2_0 assembly:<unknown assembly> It was actually very simple for me.

  1. The Firebase and ExternalDependencyManager folders must be located in the Asset folder; you should not move them elsewhere.

  2. Delete the Firebase and ExternalDependencyManager folders and then install each Firebase SDK asset you need.

  3. Run Force resolve. Screenshot_84