gpt4 book ai didi

flutter - Swift Pod尚未集成为静态库

转载 作者:行者123 更新时间:2023-12-03 13:30:35 25 4
gpt4 key购买 nike

我正在开发Flutter的应用程序。
我在执行“pod安装”时收到此错误消息,并且pod安装失败并停止了。
错误信息:

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


The Swift pod DKPhotoGallery depends upon SDWebImage and SDWebImageFLPlugin, which do 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.


我应该在哪里设置“use_modular_headers!”在Podfile中?谢谢!

最佳答案

我尝试了解决方案。 “use_frameworks!”应该在此处添加到“ios/Podfile”中:

.
.
.
target 'Runner' do
# Flutter Pod

use_frameworks! #add here

copied_flutter_dir = File.join(__dir__, 'Flutter')
copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
.
.
.

关于flutter - Swift Pod尚未集成为静态库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63090207/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com