question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DllNotFoundException on MacOS

See original GitHub issue

Unity editor version: 2020.3.25f1 Firebase Unity SDK version: 9.5.0 Source you installed the SDK: Problematic Firebase Component: Platform you are using the Unity editor on: MacOS Big Sur version 11.6 Platform you are targeting: iOS Scripting Runtime: IL2CPP

Hi, my project works well on Window when built for Android. But when I clone it to Mac and open in Editor, it show the bellow error whenever I hit Run:

DllNotFoundException: FirebaseCppApp-9_5_0 Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor () (at <e689ebc7a3ba409eb3646ba40edd9f94>:0) Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. Firebase.AppUtilPINVOKE..cctor () (at <e689ebc7a3ba409eb3646ba40edd9f94>:0) Rethrow as TypeInitializationException: The type initializer for 'Firebase.AppUtilPINVOKE' threw an exception. Firebase.AppUtil.SetLogFunction (Firebase.LogUtil+LogMessageDelegate arg0) (at <e689ebc7a3ba409eb3646ba40edd9f94>:0) Firebase.LogUtil..ctor () (at <e689ebc7a3ba409eb3646ba40edd9f94>:0) Firebase.LogUtil..cctor () (at <e689ebc7a3ba409eb3646ba40edd9f94>:0) Rethrow as TypeInitializationException: The type initializer for 'Firebase.LogUtil' threw an exception. Firebase.FirebaseApp..cctor () (at <e689ebc7a3ba409eb3646ba40edd9f94>:0) Rethrow as TypeInitializationException: The type initializer for 'Firebase.FirebaseApp' threw an exception. FirebaseManager.Setup () (at Assets/Scripts/FirebaseManager.cs:15) TrackingManager.Setup () (at Assets/Scripts/TrackingManager.cs:14) GameManager+<Start>d__18.MoveNext () (at Assets/Scripts/Core/GameManager.cs:31) UnityEngine.Debug:LogException(Exception) Cysharp.Threading.Tasks.UniTaskScheduler:PublishUnobservedTaskException(Exception) (at Assets/Third Party Packages/UniTask/Runtime/UniTaskScheduler.cs:90) Cysharp.Threading.Tasks.ExceptionResultSource:Finalize() (at Assets/Third Party Packages/UniTask/Runtime/UniTask.Factory.cs:233)

The code that fire that error: Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task => { });

Please help fix this. Thank you!!

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
letuantam96commented, Nov 30, 2022

Update: I fixed it. This is what I did:

0reactions
paulinoncommented, Dec 1, 2022

Good to hear that you’ve resolved the issue, @letuantam96. That being said, I’ll be closing this for now. Let me know if any issue arises.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DllNotFoundException in Mac Build - Unity
Hi. I'm having problems with the Mac build of my game using Unity and FMOD 2.01.03, when I try to start the build...
Read more >
Vivox DllNotFoundException error on Macbook with Apple ...
Hi everyone I'm implementing Unity Vivox Voice Chat Service to my Unity project on my Macbook with M1 Apple Silicon, but I got...
Read more >
How to resolve DLLNotFoundException in Visual Studio for ...
I am new C#, and I am coming from C++. I have a simple project that should create an SFML Window and displays...
Read more >
On M1 mac, Fusion always fails with: DllNotFoundException
I tried following the `Fusion 100` tutorial as well as download and run the Tanknarog sample.
Read more >
[Solved] Error System.DllNotFoundException on Mac
Hello, I have install monogame on my mac, but i can't launch any of my project. I always have this error Unhandled Exception:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found