如何从Codemagic更改最低部署iosTarget? [英] How to change minimum deployment iosTarget from Codemagic?
问题描述
我已经在Windows上开发了Flutter App.现在,我正在尝试通过codemagic进行构建.但是我需要更改IOS的最低部署版本.使用Codemagic构建应用程序时出现此错误
找到满足
stripe_payment(来自
.symlinks/plugins/stripe_payment/ios)
依赖性的规范,但它们需要更高的最低部署目标.
您必须在 Podfile
文件中定义最低平台ios版本.
platform:ios,'10 .0'
注意:一旦运行 flutter build ios
,就会创建 Podfile
.
如果您没有macOS设备
您必须在macOS设备上运行 flutter build ios
.如果没有这样的设备,则可以为您的项目创建CI构建管道(例如,在Azure Devops上),然后在macOS代理上运行CI构建.
在管道中,您必须添加一个将 Podfile
上传到工件的步骤,以便您可以下载该工件并将 Podfile
添加到源中.
注意: 此处您'将找到一个简单的CI/CD构建示例,无需使用 macOS
设备即可为 IOS
和 Android
构建Flutter应用程序.>
I have developed a Flutter App on Windows. Now I am trying to make the build via codemagic. But I need to change the minimum deployment version for IOS. I get this error while building app with codemagic
Specs satisfying the
stripe_payment (from
.symlinks/plugins/stripe_payment/ios)
dependency were found, but they required a higher minimum deployment target.
You'll have to define the minimum platform ios version in the Podfile
file.
platform :ios, '10.0'
Note: the Podfile
will be created once you run flutter build ios
.
If you don't have a macOS device
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.
这篇关于如何从Codemagic更改最低部署iosTarget?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!