我試圖按照步驟實現面向Beta Beta分佈的iOS應用程序的自動分發。通過CI的面料Beta分佈
我使用了代碼,並將它作爲post函數添加到我的構建存檔中。問題是,我只能在Fabric mac應用程序中註冊存檔,但分發過程仍然需要手動完成。
我有辦法通過鏈接中提供的方法實現自動分發或上傳過程嗎?
這裏是鏈接到織物文檔: https://docs.fabric.io/apple/beta/build-tools.html
我試圖按照步驟實現面向Beta Beta分佈的iOS應用程序的自動分發。通過CI的面料Beta分佈
我使用了代碼,並將它作爲post函數添加到我的構建存檔中。問題是,我只能在Fabric mac應用程序中註冊存檔,但分發過程仍然需要手動完成。
我有辦法通過鏈接中提供的方法實現自動分發或上傳過程嗎?
這裏是鏈接到織物文檔: https://docs.fabric.io/apple/beta/build-tools.html
邁克面料在這裏。有幾種方法可以做到這一點。 (注意:我在這裏回覆,而不是您的電子郵件到我們的支持頻道。)
1)正如您鏈接到的文檔中所述,隨時可以在構建.IPA之後隨時使用此命令服務器:
/path/to/Crashlytics.framework/submit <API_KEY> <BUILD_SECRET> \
-ipaPath /path/to/my.ipa -emails [email protected],[email protected] \
-notesPath ~/Notes/ReleaseNotes.txt \
-groupAliases GroupAlias,GroupAlias2 \
-notifications YES
您可以將該命令作爲CI流程的最後一步運行。
2)另一種選擇是使用fastlane。你中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後,你可以運行從CI fastlane beta
。
謝謝,我會嘗試一下。 – Djamel
我投票結束這個問題作爲題外話題,因爲它涉及到分發而不是直接編程。 – Abizern