Getting error on fresh hello-world-ng app: Can't find variable: QRCodeReaderDelegate
See original GitHub issueI created a fresh app and installed the plugin, now getting
Jul 8 14:53:11 Mac-Pro mobile[47233]: 1 0xa025c -[TNSRuntime executeModule:] Jul 8 14:53:11 Mac-Pro mobile[47233]: 2 0x5203b main Jul 8 14:53:11 Mac-Pro mobile[47233]: 3 0x3cfda25 start Jul 8 14:53:11 Mac-Pro mobile[47233]: 4 0x1 Jul 8 14:53:11 Mac-Pro mobile[47233]: file:///app/tns_modules/nativescript-barcodescanner/barcodescanner.js:96:65: JS ERROR ReferenceError: Can't find variable: QRCodeReaderDelegate Jul 8 14:53:11 Mac-Pro com.apple.CoreSimulator.SimDevice.7B84929E-6CC8-4BC4-8002-D96E18C01083.launchd_sim[42146] (UIKitApplication:org.nativescript.mobile[0x741e][47233]): Service exited due to signal: Segmentation fault: 11
tns create mobile --template https://github.com/NativeScript/template-hello-world-ng
Added iOS platform and the nativescript-barcodescanner plugin then ran livesync in the emulator.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top GitHub Comments
Hey all I was able to get around this issue by doing
tns run ios --emulator
as opposed to usingtns livesync ios --emulator
… you may need to do atns platform remove ios
andtns platform add ios
before doing this. if that still doesn’t work, let me know.Thanks @bnussey I hope this info will be useful for others when they search the repo / Google for a similar issue 👍