【发布时间】:2021-04-28 01:06:16
【问题描述】:
在我的 Flutter 项目中,我需要在我的项目的原生 iOS 部分添加依赖项。
为此,我使用 Swift 包管理器。
但是每次我尝试运行我的应用程序时,在添加依赖项后,我都会收到以下构建错误:
ProcessException: Process exited abnormally:
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -list
xcodebuild: error: Could not resolve package dependencies:
Packages are not supported when using legacy build locations, but the current project has them enabled.
Command: /usr/bin/xcodebuild -list
更多详情here.
由于我是 iOS 开发新手,如何在 Xcode 中添加依赖项以使我的 Flutter 应用正常运行?
谢谢。
【问题讨论】:
-
@fartem 谢谢,我实际上已经看到了,但我仍然不知道如何解决这个问题(我在 Flutter 的稳定 1.22.5 版本上,安装了 Cocoapods)