ios - 应用商店连接 : automate releasing/updating app after submit for review with "Manually release this version"

标签 ios automation continuous-integration app-store-connect fastlane

这听起来很矛盾。我的目标是找到一种工具,它可以自动完成登录 App Store Connect 的过程,然后单击 Make App Available 按钮。这是因为我的团队有一个内部流程来发布对我们产品的更改。有很多事情要做,但我们也有工具来自动化所有这些。因此,我正在寻找可以附加到我们的发布自动化工具的东西,以便整个发布过程完全自动化。

问题陈述

因为我们需要完全控制发布时间。有时,在公司环境中,在完成所有测试后,我们想发布应用程序,并在当天开始监控使用情况。在 Google Play 上,这不是问题。我们可以预期我们提交发布的应用程序会在提交后不久上线。但在 App Store Connect 上,使用当前的提交审核流程,我们无法控制审核时间。

使用 FaSTLane,将 automatic_release 标志设置为 true,这意味着该应用程序可以在周末上线。如果新版本出现问题,没有人会在场快速解决问题。

或者另一个选项,设置 auto_release 日期,如果审核过程花费的时间超过定义的发布日期,我们仍然会遇到同样的问题。

有没有一种方法可以使用“手动发布此版本”选项提交审核,然后在批准后,有一些工具/api 可以登录 App Store Connect 并按 Make App Available 对我们来说?

最佳答案

您可以在 GitHub 上列出所有可用的快速 channel 操作.

如果找不到满足您需要的预定义操作,值得检查 FaSTLane Spaceship 模块的低级 API 调用:

spaceship exposes both the Apple Developer Center and the App Store Connect API. It’s super fast, well tested and supports all of the operations you can do via the browser. It powers parts of fastlane, and can be leveraged for more advanced fastlane features.

在搜索 Spaceship 源代码时,我发现应用发布是 already added :

  • 分阶段发布使用:release
  • 要立即发布给所有用户,请使用:release_to_all_users

我没有机会对此进行测试,但如果您不熟悉 Spaceship,下面的代码片段可能会有所帮助。把它放在 Fastfile 中然后从你需要的地方调用它:

lane :release_app do
    require "spaceship"
    Spaceship::Tunes.login('email@example.com')

    app = Spaceship::Application.find('com.example.app')
    app.release_to_all_users
end

关于ios - 应用商店连接 : automate releasing/updating app after submit for review with "Manually release this version",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60933774/

相关文章:

ios - 更改导航栏背景颜色后,self.view 的 y 位置发生更改

python - 如何将缩进从 2 个空格转换为 4 个空格

python - iOS 12 快捷方式应用程序 - 可以切换特定的通知设置吗?

javascript - 在表单输入字段中自动插入日期和时间?

Azure管道: How to block pipeline A if pipeline B is running

ant - Jenkins:如何使工具中的某些日志消息导致构建失败?

GitLab。提交待定

ios - Xcode 丢失语法高亮显示并收到 .m 文件的 DVTAsertions 警告

ios - PresentViewController 在 iOS 中隐藏导航栏

ios - 通过 NSPredicate 比较两个组件