Flutter 运行报错问题you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_h...

Flutter 运行报错问题

问题如下:

终端中的pod install报错信息:

[!] The following Swift pods cannot yet be integrated as static libraries:

The Swift pod `qr_code_scanner` depends upon `MTBBarcodeScanner`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.

仔细看答案就在这里

下图框住的提示:you may set `use_modular_headers!` globally in your Podfile, 

根据提示来进行解决:

vim podfile

在podfile文件中粘贴以下内容

#use_frameworks!

use_modular_headers!

保存后运行成功


你可能感兴趣的:(Flutter 运行报错问题you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_h...)