-1

我尝试按照这些步骤来实现我的 iOS 应用程序的 Fabric Beta Distribution 的自动分发。

我使用了代码并将其作为发布功能添加到我的构建存档中。问题是,我只在 Fabric mac 应用程序中注册了存档,但分发过程仍然必须手动完成。

我有没有办法通过链接中提供的方法实现自动分发或上传过程?

这是织物文档的链接: https ://docs.fabric.io/apple/beta/build-tools.html

4

1 回答 1

0

来自 Fabric 的 Mike。有几种方法可以做到这一点。(注意:我在这里回复,而不是您的电子邮件到我们的支持渠道。)

1)如您链接到的文档中所述,您可以在构建服务器构建 .IPA 后随时使用此命令:

/path/to/Crashlytics.framework/submit <API_KEY> <BUILD_SECRET> \
-ipaPath /path/to/my.ipa -emails TestEmail@fabric.io,AmazingTester@twitter.com \
-notesPath ~/Notes/ReleaseNotes.txt \
-groupAliases GroupAlias,GroupAlias2 \
-notifications YES

您可以将该命令作为 CI 流程的最后一步运行。

2)另一种选择是使用快车道。你的 Fastfile 看起来像这样:

# More documentation about how to customize your build
# can be found here:
# https://docs.fastlane.tools
fastlane_version "1.109.0"

# This value helps us track success metrics for Fastfiles
# we automatically generate. Feel free to remove this line
# once you get things running smoothly!
generated_fastfile_id "generated_id"

default_platform :ios

# Fastfile actions accept additional configuration, but
# don't worry, fastlane will prompt you for required
# info which you can add here later
lane :beta do
  # build your iOS app
  gym(
    # scheme: "YourScheme",
    export_method: "ad-hoc"
  )

  # upload to Beta by Crashlytics
  crashlytics(
    # keys for organization: YourOrganization
    api_token: "YourApiKey",
    build_secret: "YourBuildSecret"
  )
end

安装fastlane后,您fastlane beta将从 CI 运行。

于 2017-08-17T11:57:01.633 回答