美文网首页
Flutter 运行报错问题you may set `use_m

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

作者: 守护浪漫的小香樟 | 来源:发表于2022-07-24 10:16 被阅读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!

保存后运行成功

相关文章

网友评论

      本文标题:Flutter 运行报错问题you may set `use_m

      本文链接:https://www.haomeiwen.com/subject/ykdgirtx.html