jhoogstraat / fast_barcode_scanner

A flutter plugin that allows your users to scan any type of barcode on iOS and Android
40 stars 64 forks source link

Error building example app on IOS #36

Closed JobMoll closed 3 years ago

JobMoll commented 3 years ago

I get some errors while building the example app on IOS:

/fast_barcode_scanner-main/fast_barcode_scanner/ios/Classes/Scanner/VisionBarcodeScanner.swift:17:32: error: cannot find 'VNDetectBarcodesRequestRevision2' in scope
                request.revision = VNDetectBarcodesRequestRevision2
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This one also applies to the following types: . dataMatrix, . ean13, . ean8, . itf14, . pdf417, . qr, . upce,

/fast_barcode_scanner-main/fast_barcode_scanner/ios/Classes/types/ScannerConfiguration.swift:79:15: error: type 'VNBarcodeSymbology' has no member 'aztec'
        "aztec": .aztec,
                 ~^~~~~

Regards, Job

jhoogstraat commented 3 years ago

It will work with Xcode 13. Don't know whatever Apple did there...

Maybe I can make it work with both Xcode 12 and 13.

JobMoll commented 3 years ago

Ah! Just installed Xcode 13 gonna try it in a bit 👍🏽