EddyVerbruggen / nativescript-plugin-firebase

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

Can't find variable: FIRVision #1594

Open HulioEglesias opened 4 years ago

HulioEglesias commented 4 years ago

Why I got this error and how to fix it? Just now I create a project NS-vue from blank template. Install nativescript-plugin-firebase npm i --save nativescript-plugin-firebase. Got GoogleService-Info.plist and put into App_Resources/iOS. Add firebase.init() in app.js (and it's success) After that I try to use firebase.mlkit.barcodescanning.scanBarcodesOnDevice image My plugins: image And got error: ML Kit Error: Can't find variable: FIRVision What's wrong?

manojdcoder commented 4 years ago

Make sure you enabled MLKit (ml_kit property should be set to true in firebase.nativescript.json). If Yes, then also ensure the POD is being installed - you may verify that by opening the compiled project in Xcode.

HulioEglesias commented 4 years ago

ml_kit was false, but now I set it to true, then use commands tns platform remove ios and tns platform add ios.But I got same error. When I open project `platforms/ios', I see 2 folders - project name and pods image

HulioEglesias commented 4 years ago

@manojdcoder So what wrong I do?