EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 448 forks source link

Unable to load "FIRTranslateLanguageForLanguageCode" function #1828

Open darko-bw opened 2 years ago

darko-bw commented 2 years ago

Hi Eddy,

There is an error when I am trying to use MLKit for language recognition and translation. I am using latest NS8 and latest firebase plugin version. Please see more details below:

6.34.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001014] App Delegate does not conform to UIApplicationDelegate protocol. Unable to load "FIRTranslateLanguageForLanguageCode" function ====== Assertion failed ====== Native stack trace: 1 0x1075de158 tns::Assert(bool, v8::Isolate) + 128 2 0x1075b3c8c tns::MetadataBuilder::GlobalPropertyGetter(v8::Local, v8::PropertyCallbackInfo const&) + 1556 3 0x107a56090 v8::internal::PropertyCallbackArguments::BasicCallNamedGetterCallback(void ()(v8::Local, v8::PropertyCallbackInfo const&), v8::internal::Handle, v8::internal::Handle, v8::internal::Handle) + 336 4 0x107919d9c v8::internal::(anonymous namespace)::GetPropertyWithInterceptorInternal(v8::internal::LookupIterator, v8::internal::Handle, bool) + 700 5 0x107a46018 v8::internal::Object::GetProperty(v8::internal::LookupIterator, bool) + 96 6 0x1078c2ef8 v8::internal::LoadIC::Load(v8::internal::Handle, v8::internal::Handle, bool, v8::internal::Handle) + 2352 7 0x1078cb174 v8::internal::Runtime_LoadNoFeedbackIC_Miss(int, unsigned long, v8::internal::Isolate*) + 252 8 0x107ebe76c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit + 108 9 0x107f3493c Builtins_LdaGlobalHandler + 4252 10 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 11 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 12 0x107f0397c Builtins_PromiseConstructor + 1884 13 0x107e5a4f0 Builtins_JSBuiltinsConstructStub + 368 14 0x107f413f4 Builtins_ConstructHandler + 628 15 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 16 0x107e5ab8c Builtins_ConstructProxy + 492 17 0x107f413f4 Builtins_ConstructHandler + 628 18 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 19 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 20 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 21 0x107f0397c Builtins_PromiseConstructor + 1884 22 0x107e5a4f0 Builtins_JSBuiltinsConstructStub + 368 23 0x107f413f4 Builtins_ConstructHandler + 628 24 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 25 0x107e5ab8c Builtins_ConstructProxy + 492 26 0x107f413f4 Builtins_ConstructHandler + 628 27 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 28 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 29 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 30 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 31 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 32 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 33 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 34 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 35 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 36 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 37 0x107e5d690 Builtins_InterpreterEntryTrampoline + 240 38 0x107e5b0ac Builtins_JSEntryTrampoline + 172 39 0x107e5ad48 Builtins_JSEntry + 168 40 0x109fb0000 40 ??? 0x0000000109fb0000 0x0 + 4462411776 JavaScript stack trace: kExcludedFromBackupXattrName set on path: at (file: app/webpack:/@nativescript/template-hello-world/node_modules/@nativescript/firebase/mlkit/translation/index.ios.js:28:0) at (VM) at construct (VM) at _downloadTranslationModelIfNeeded (file: app/webpack:/@nativescript/template-hello-world/node_modules/@nativescript/firebase/mlkit/translation/index.ios.js:26:0) at (file: app/webpack:/@nativescript/template-hello-world/node_modules/@nativescript/firebase/mlkit/translation/index.ios.js:11:0) at (VM) at construct (VM) at translateText (file: app/webpack:/@nativescript/template-hello-world/node_modules/@nativescript/firebase/mlkit/translation/index.ios.js:9:0) at ./app/main-page.js (file: app/webpack:/@nativescript/template-hello-world/app/main-page.js:25:0) at __webpack_require__ (file: app/webpack:/@nativescript/template-hello-world/webpack/bootstrap:24:0)