DllNotFoundException on MacOS
See original GitHub issueUnity 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:
- Created 10 months ago
- Comments:5
Top GitHub Comments
Update: I fixed it. This is what I did:
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.