我正在通过 Flutter 构建一个应用程序。我在执行“pod install”时收到此错误消息,并且 pod 安装失败并停止。
错误信息:
[!] 以下 Swift pod 还不能集成为静态库:
Swift pod
DKPhotoGallery依赖于SDWebImage和SDWebImageFLPlugin,它们没有定义模块。要选择那些生成模块映射的目标(这是在构建为静态库时从 Swift 导入它们所必需的),您可以use_modular_headers!在 Podfile 中全局设置,或指定:modular_headers => true特定的依赖项。
我应该在哪里设置“use_modular_headers!” 在 Podfile 中?谢谢!
dre*_*ast 17
我尝试了解决方案。“使用框架!” 应该在“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')
.
.
.
Run Code Online (Sandbox Code Playgroud)
小智 6
这些似乎不是定义模块。在你的 Podfile 中添加:
pod 'YOUR_PACKAGE_NAME', :modular_headers => true
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3425 次 |
| 最近记录: |