我在 Windows 上开发了一个 Flutter 应用程序。现在我正在尝试通过 codemagic 进行构建。但是我需要更改 IOS 的最低部署版本。使用 codemagic 构建应用程序时出现此错误
找到了满足
stripe_payment (from
.symlinks/plugins/stripe_payment/ios)
依赖的规范,但它们需要更高的最小部署目标。
我在 Windows 上开发了一个 Flutter 应用程序。现在我正在尝试通过 codemagic 进行构建。但是我需要更改 IOS 的最低部署版本。使用 codemagic 构建应用程序时出现此错误
找到了满足
stripe_payment (from
.symlinks/plugins/stripe_payment/ios)
依赖的规范,但它们需要更高的最小部署目标。
您必须在Podfile
文件中定义最低平台 ios 版本。
platform :ios, '10.0'
注意:将Podfile
在您运行后创建flutter build ios
。
You'll have to run flutter build ios
on a macOS device. If you don't have such a device you can create a CI build pipeline for your project (on Azure Devops for example), and run the CI build on a macOS agent.
In the pipeline you have to add a step that uploads the Podfile
to an artifact, so you can download that artifact and add the Podfile
to your sources.
Note: here you'll find a simple CI/CD build example for building your Flutter app for IOS
and Android
without the need for a macOS
device.