fastlane 使用

一、安裝Fastlane

sudo gem install fastlane -NV或是brew cask install fastlane

二、初始化Fastlane

cd到你的項目目錄執(zhí)行

fastlane init

三自動管理證書

fastlane match init

git_url("https://gitee.com/xxxx/xxxxxxx.git") //新建一個項目,將地址復制到這里

type("development") # 默認match所同步的類型,可不管

app_identifier("bundle Id")? #bundleId,若同工程下有多個,則用["bundleId1","bundleId2"]

username("user@fastlane.tools")? #蘋果開發(fā)者賬號

配置好后,在主項目工程目錄下執(zhí)行:

fastlane match development --verbose


default_platform(:ios)

platform :ios do

? desc "Description of what the lane does"

? lane :custom_lane do

? ? # add actions here: https://docs.fastlane.tools/actions

? end

? lane :dis do

? xcode_select("/Applications/Xcode.app")

? ? ? build_app(

? ? ? ? scheme: "Japanese",

? ? ? ? export_method: "app-store",

? ? ? ? output_name: "app-store.ipa",

? ? ? ? export_xcargs: "-allowProvisioningUpdates"? ?

? ? ? )

? end?

? lane :dev do

? xcode_select("/Applications/Xcode.app")

? ? ? build_app(

? ? ? ? scheme: "Japanese",

? ? ? ? export_method: "development",

? ? ? ? output_name: "dev.ipa",

? ? ? ? export_xcargs: "-allowProvisioningUpdates"

? ? ? )

? end

? lane :hoc do

? xcode_select("/Applications/Xcode.app")

? ? ? build_app(

? ? ? ? scheme: "Japanese",

? ? ? ? export_method: "ad-hoc",

? ? ? ? output_name: "hoc.ipa",

? ? ? ? export_xcargs: "-allowProvisioningUpdates"

? ? ? )

? end?

end

?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

  • 一:Fastlane 安裝準備工作 一、安裝xcode命令行工具 xcode-select --install 如...
    水之飛亦閱讀 600評論 0 0
  • Fastlane 使用大致流程如下: 思路弄清楚后操作時,參照demo中的文件修改即可。參數(shù)可以自定義配置(參數(shù)說...
    TeeMo_Yan閱讀 5,376評論 0 5
  • 一. 官網(wǎng):Fastlane 二. 安裝: 1.先安裝 Xcode command line tools ...
    陳文豪閱讀 344評論 2 0
  • 更新節(jié)點:2019-05-15由于fastlane更新頻繁,已更新到 2.105.2 2.122.0更新內(nèi)容:fa...
    就叫yang閱讀 62,128評論 73 146
  • fastlane運行所需要的環(huán)境: OS X 10.9以上 Ruby 2.0 以上 Xcode 擁有一個開發(fā)者賬號...
    阿姣_0405閱讀 3,248評論 0 4

友情鏈接更多精彩內(nèi)容