Problem build IOS with qr_code_scanner

I tried to run my application on the IOS simulator, but it shows the error below:

Xcode’s output:

/Users/*****/Development/flutter/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.0.13/ios/Classes/QRView.swift:9:8: error: no such
module 'MTBBarcodeScanner'
import MTBBarcodeScanner
       ^

/Users/*****/Development/flutter/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.0.13/ios/Classes/QRView.swift:9:8: error: no such
module 'MTBBarcodeScanner'
import MTBBarcodeScanner
       ^

warning: Could not read serialized diagnostics file: Invalid File: Invalid diagnostics signature (in target 'qr_code_scanner' from project
'Pods')

note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

To me it looks like you’ve not been able to import the package for QR scanner properly.
error: no such module 'MTBBarcodeScanner'

I would recommend you start the process again. Clean your current installation and do it again.

1 Like

Clean with “flutter clean” command?

I’m running “flutter clean & flutter pub get & flutter pub run build_runner watch build”

thank you!