使用qr_code_scanner运行抖动时MTBBarcodeScanner错误

时间:2020-09-16 00:49:52

标签: ios flutter cocoapods pod

在IOS上运行项目时遇到问题。

我无法使用qr_code_scanner(https://pub.dev/packages/qr_code_scanner/changelog),因为MTBBarcodeScanner出错。

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

我无法使用POD安装命令进行安装。

pod install

Analyzing dependencies

Downloading dependencies

Generating Pods project

Integrating client project

Pod installation complete! There are 4 dependencies from the Podfile and 5 total pods installed.


[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).

有人可以帮我吗?

谢谢。

0 个答案:

没有答案