Pgyer internal test distribution service is a leading mobile application internal test distribution platform in China, dedicated to providing easy-to-use App internal test distribution services for mobile developers and test users.
Pgyer Developer Service Platform is committed to providing excellent upstream and downstream services for developers, addressing the various needs of developers throughout the developer life cycle.
Scan QR code to follow
Pgyer WeChat Official Account
Get the latest news, official benefits, promotions and other information
Pgyer document center
Fastlane 是一款為 iOS 和 Android 開發者提供的自動化構建工具,它可以幫助開發者將 App 打包、簽名、測試、發布、信息整理、提交 App Store 等工作完整的連接起來,實現完全自動化的工作流,如果使用得當,可以顯著的提高開發者的開發效率。
為了讓使用 Fastlane 的用戶,可以將 Fastlane 的自動化工作流與蒲公英結合起來,我們為大家提供了 Fastlane 的蒲公英插件。該插件使用起來非常簡單,安裝該插件后,由 Fastlane 打包生成的 App 可以自動上傳到蒲公英。
在終端中,輸入以下命令,即可安裝蒲公英的 fastlane 插件。
fastlane add_plugin pgyer
稍等幾秒鐘,如果出現類似下面的信息,就說明安裝成功了:
在使用 Fastlane 之前,我們首先需要在項目中初始化 Fastlane。首先進入 App 的開發目錄,執行以下命令來初始化 Fastlane:
fastlane init
執行上述命令后,Fastlane 會自動在 App 目錄中生成 fastlane
目錄,其中就會有 Fastlane 的配置文件 fastlane/Fastfile
,這里,我們用 vim 打開:
vim ./fastlane/Fastfile
然后,我們找到我們在用的工作流(action),在 build_app
指令后,加入蒲公英插件的配置信息。例如:
lane :beta do
build_app(export_method: "ad-hoc")
pgyer(api_key: "7f15xxxxxxxxxxxxxxxxxx141")
end
注意:
api_key
請開發者在自己賬號下的 應用管理
- App概述
- API
中可以找到,并替換到以上相應的位置。build_app
的 export_method
的值,需要根據開發者的打包類型進行設置,可選的值有:app-store
、ad-hoc
、development
、enterprise
。對于 Xcode 8.3 以下的版本,則不需要設置 export_method
。經過以上配置后,就可以使用 Fastlane 來打包 App,并自動上傳到蒲公英了。在終端下,定位到項目所在目錄,輸入以下命令即可:
fastlane beta
在成功的情況下,可以看到類似下面的信息:
您也可以設置 App 上傳到蒲公英時,設置密碼:
lane :beta do
build_app(export_method: "ad-hoc")
pgyer(api_key: "7f15xxxxxxxxxxxxxxxxxx141", password: "123456", install_type: "2")
end
設置一個版本更新時的描述信息:
lane :beta do
build_app(export_method: "ad-hoc")
pgyer(api_key: "7f15xxxxxxxxxxxxxxxxxx141", update_description: "update by fastlane")
end
About Us
Product Services
Help
Your account information is under review and can not be used temporarily; you can:
Check out the help documentation for common ways to work on the Pgyer's platform;
Check Pgyer's App Auditing , which must be viewed before uploading.
Currently, the real-name authentication has not been completed, and the number of downloads for each version is limited to 5 times/day, After real-name authentication, it can be extended to 500 times/day
TestFlight is only available to Professional users.(Click understand pgyer's price plan)
支付成功
Pgyer VIP User Group
(Please open WeChat - Sweep and join the group chat)