flutter - 如何从 Codemagic 更改最小部署 iosTarget?

标签 flutter stripe-payments codemagic

我在 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/

相关文章:

flutter - 在Flutter构建期间调用setState

javascript - 如何将 Stripe 支付库与 HTML/JS 中单选按钮选择的多个按钮结合起来

php - strip 创建发票/收费发票

ios - 如何在codemagic中创建podfile?

flutter - 如何为 Codemagic 设置自动构建?

flutter - 如何修复响应容器内 ListView 的溢出错误

ios - Flutter 构建失败 'UserAgent.h' 找不到文件

android - Firebase 配置的 Codemagic 预构建问题

flutter - 5 月 1 日之后,我们将如何处理 jcenter() 存储库,它有什么替代方案?

javascript - Stripe 用户 token 问题