Firebase Realtime Database 인스턴스 초기화 과정에서 아래와 같은 에러가 발생함.
실제 Firebase 에서 DB를 가져올 수 없음.
DllNotFoundException: FirebaseCppApp-10_4_0 assembly:<unknown assembly> type:<unknown type> member:(null) Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/macos_unity/x86_64/app/swig/Firebase.App_fixed.cs:4072) Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. Firebase.AppUtilPINVOKE..cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/macos_unity/x86_64/app/swig/Firebase.App_fixed.cs:4092) 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/macos_unity/x86_64/app/swig/Firebase.App_fixed.cs:4802) 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/macos_unity/x86_64/app/swig/Firebase.App_fixed.cs:2014) Rethrow as TypeInitializationException: The type initializer for 'Firebase.FirebaseApp' threw an exception. Firebase.Database.FirebaseDatabase.get_DefaultInstance () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/database/src/FirebaseDatabase.cs:87) NetworkManager.Start () (at Assets/Scripts/Managers/NetworkManager.cs:75)
에러 발생 코드 : FirebaseDatabase.DefaultInstance.RootReference
검색 결과, MacOS에서 비슷한 증상을 보이는 경우가 있음.
최초 작업 환경 : Mac OS Montrey
현재 작업 환경 : Mac OS Ventura
Firebase Realtime Database 인스턴스 초기화 과정에서 아래와 같은 에러가 발생함. 실제 Firebase 에서 DB를 가져올 수 없음.
DllNotFoundException: FirebaseCppApp-10_4_0 assembly:<unknown assembly> type:<unknown type> member:(null) Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/macos_unity/x86_64/app/swig/Firebase.App_fixed.cs:4072) Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. Firebase.AppUtilPINVOKE..cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/macos_unity/x86_64/app/swig/Firebase.App_fixed.cs:4092) 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/macos_unity/x86_64/app/swig/Firebase.App_fixed.cs:4802) 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/macos_unity/x86_64/app/swig/Firebase.App_fixed.cs:2014) Rethrow as TypeInitializationException: The type initializer for 'Firebase.FirebaseApp' threw an exception. Firebase.Database.FirebaseDatabase.get_DefaultInstance () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/database/src/FirebaseDatabase.cs:87) NetworkManager.Start () (at Assets/Scripts/Managers/NetworkManager.cs:75)
에러 발생 코드 :
FirebaseDatabase.DefaultInstance.RootReference
검색 결과, MacOS에서 비슷한 증상을 보이는 경우가 있음.
최초 작업 환경 : Mac OS Montrey 현재 작업 환경 : Mac OS Ventura