Flutter 运行报错问题you may set `use_m

2022-07-24  本文已影响0人  守护浪漫的小香樟

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!

保存后运行成功

上一篇 下一篇

猜你喜欢

热点阅读