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] DllNotFoundException: FirebaseCppApp-8_1_0 assembly:<unknown assembly> type:<unknown type> member:(null) #1130

Closed
fruitdrawing opened this issue Sep 4, 2021 · 4 comments
Labels
type: feature request unity-editor Issues related to Firebase usage in Unity editor

Comments

@fruitdrawing
Copy link

fruitdrawing commented Sep 4, 2021

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2021.2.0b9 (m1 MacBook Air)
  • Firebase Unity SDK version: _8.1.0
  • Source you installed the SDK: _firestore ,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: 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-8_1_0 assembly: type: member:(null)
Firebase.AppUtilPINVOKE SWIGExceptionHelper..cctor () (at Z:/tmp/tmp.9PHv6s9T8D/firebase/app/client/unity/proxy/AppUtilPINVOKE.cs:117)
Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.
Firebase.AppUtilPINVOKE..cctor () (at Z:/tmp/tmp.9PHv6s9T8D/firebase/app/client/unity/proxy/AppUtilPINVOKE.cs:137)
Rethrow as TypeInitializationException: The type initializer for 'Firebase.AppUtilPINVOKE' threw an exception.
Firebase.AppUtil.SetLogFunction (Firebase.LogUtil LogMessageDelegate arg0) (at Z:/tmp/tmp.9PHv6s9T8D/firebase/app/client/unity/proxy/AppUtil.cs:64)
Firebase.LogUtil..ctor () (at Z:/tmp/tmp.9PHv6s9T8D/firebase/app/client/unity/proxy/LogUtil.cs:81)
Firebase.LogUtil..cctor () (at Z:/tmp/tmp.9PHv6s9T8D/firebase/app/client/unity/proxy/LogUtil.cs:37)
Rethrow as TypeInitializationException: The type initializer for 'Firebase.LogUtil' threw an exception.
Firebase.FirebaseApp..cctor () (at Z:/tmp/tmp.9PHv6s9T8D/firebase/app/client/unity/proxy/FirebaseApp.cs:67)
Rethrow as TypeInitializationException: The type initializer for 'Firebase.FirebaseApp' threw an exception.

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
@paulinon paulinon added unity-editor Issues related to Firebase usage in Unity editor and removed new New issue. api: database labels Sep 6, 2021
@paulinon
Copy link
Contributor

paulinon commented Sep 6, 2021

Hi @fruitdrawing,

Thanks for reporting this issue. Since you're on a Mac, could you try going to your Settings > Security and Privacy and clicking Allow Anyway for Firebase to run?

If this didn't resolve your issue, please provide a minimal, reproducible example of your project so that we can identify the cause of this behavior.

@paulinon paulinon added the needs-info Need information for the developer label Sep 6, 2021
@fruitdrawing
Copy link
Author

fruitdrawing commented Sep 6, 2021

Thank you for help @paulinon !

I have intel mac and m1 mac. on Intel mac, I can solve the issue with your solution.(hit play button and Allow anyway in Security and Privacy.)

But on m1 mac I cannot click Allow Anyway Firebase button since there is no allow anyway button is activated in Security & privacy.(On intel Mac there was a mac's warning window to activate 'Allow' when I hit play button but m1 does not). So it keeps throwing same error message above.

The project is just an empty Unity project with Auth and Firestore sdk.
and Im calling Firebase by one line of code :

FirebaseFirestore db = FirebaseFirestore.DefaultInstance;

@paulinon paulinon added type: feature request and removed type: question needs-info Need information for the developer labels Sep 7, 2021
@paulinon
Copy link
Contributor

paulinon commented Sep 7, 2021

Thanks for the clarification that this issue persists using the M1 Mac, @fruitdrawing. This looks like an issue similar to firebase/firebase-unity-sdk#278. I'll be closing this as a duplicate for now, but you may visit the mentioned ticket for updates.

@paulinon
Copy link
Contributor

paulinon commented Sep 7, 2021

Duplicate of firebase/firebase-unity-sdk#278

@paulinon paulinon closed this as completed Sep 7, 2021
@firebase firebase locked and limited conversation to collaborators Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature request unity-editor Issues related to Firebase usage in Unity editor
Projects
None yet
Development

No branches or pull requests

3 participants