flutter swift 包运用在oc语言上

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文件中添加

use_frameworks!

然后pod install 就好了

image

你可能感兴趣的:(flutter swift 包运用在oc语言上)