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 就好了