美文网首页Flutter学习
flutter swift 包运用在oc语言上

flutter swift 包运用在oc语言上

作者: 三也视界 | 来源:发表于2021-01-07 10:14 被阅读0次

1.问题

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

The Swift pod barcode_scan 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.

2.解决

在Podfile文件中添加

<pre style="box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 8px; font-weight: 400; position: relative; white-space: pre-wrap; overflow-wrap: break-word; overflow-x: auto; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">use_frameworks!</pre>

然后pod install 就好了

image

相关文章

网友评论

    本文标题:flutter swift 包运用在oc语言上

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