我在 Windows 上开发了一个 Flutter 应用程序。现在我正在尝试通过 codemagic 进行构建。但是我需要更改IOS的最低部署版本。
使用 codemagic 构建应用程序时出现此错误
Specs satisfying the
stripe_payment (from
.symlinks/plugins/stripe_payment/ios)
dependency were found, but they required a higher minimum deployment target.
最佳答案
您必须在 Podfile
中定义最低平台 ios 版本文件。
platform :ios, '10.0'
注:
Podfile
一旦你运行 flutter build ios
就会被创建.如果您没有 macOS 设备
你必须运行
flutter build ios
在 macOS 设备上。如果你没有这样的设备,你可以为你的项目创建一个 CI 构建管道(例如在 Azure Devops 上),并在 macOS 代理上运行 CI 构建。在管道中,您必须添加一个上传
Podfile
的步骤。到工件,因此您可以下载该工件并添加 Podfile
到您的来源。注: here您会找到一个简单的 CI/CD 构建示例,用于为
IOS
构建 Flutter 应用程序和 Android
无需 macOS
设备。
关于flutter - 如何从 Codemagic 更改最小部署 iosTarget?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60357362/