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

DllNotFoundException on MacOS #1308

Closed
letuantam96 opened this issue Nov 28, 2022 · 5 comments
Closed

DllNotFoundException on MacOS #1308

letuantam96 opened this issue Nov 28, 2022 · 5 comments
Labels

Comments

@letuantam96
Copy link

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!!

@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@paulinon
Copy link
Contributor

Hi @letuantam96,

Thanks for reporting this. Are you facing an alert saying that Firebase cannot be verified when playing the scene? If so, I'd like you to try going to your Mac’s System Preferences > Security & Privacy then Click Allow Anyway corresponding to Firebase.

Let me know if this solution made a difference.

@paulinon paulinon added the needs-info Need information for the developer label Nov 29, 2022
@letuantam96
Copy link
Author

letuantam96 commented Nov 30, 2022

Hi @paulinon,
Thank for response. Unfortunately, I dont facing the arlet you mention. I tried:

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Nov 30, 2022
@letuantam96
Copy link
Author

letuantam96 commented Nov 30, 2022

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

@paulinon
Copy link
Contributor

paulinon commented 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.

@paulinon paulinon closed this as completed Dec 1, 2022
@firebase firebase locked and limited conversation to collaborators Jan 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants