capacitor-community / barcode-scanner

A fast and efficient (QR) barcode scanner for Capacitor
MIT License
437 stars 172 forks source link

Value of optional type 'CAPBridgeProtocol?' must be unwrapped to refer to member 'getWebView' of wrapped base type 'CAPBridgeProtocol' #130

Closed asdmx closed 2 years ago

asdmx commented 2 years ago

Describe the bug Error occured during the XCode compilation

Expected behavior Error displayed : Swift compiler error Value of optional type 'CAPBridgeProtocol?' must be unwrapped to refer to member 'getWebView' of wrapped base type 'CAPBridgeProtocol'

Screenshots

Captura de Pantalla 2022-06-23 a la(s) 10 30 07 Captura de Pantalla 2022-06-23 a la(s) 10 30 26 Captura de Pantalla 2022-06-23 a la(s) 10 30 34

Desktop (please complete the following information):

Thanks in advance for your help

thegnuu commented 2 years ago

@asdmx Unfortunately I have no access to an another Mac with Xcode 12, I am working with Xcode 13 and MacOS 12 for all projects and everything is working without any issues on my devices. Which version of capacitor are you using?

asdmx commented 2 years ago

@thegnuu I solve my problem upgrading my MacOS to 12 and my XCODE to 13, but I have to uninstall first and then install again via NPM, thanks for your help

thegnuu commented 2 years ago

Glad you were able to resolve your issue and sorry I was not able to help you with the older versions, unfortunately my available testing devices are limited at the moment ;)