fastlane 使用

一、安装Fastlane

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

二、初始化Fastlane

cd到你的项目目录执行

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")  #苹果开发者账号

配置好后,在主项目工程目录下执行:

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

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 一:Fastlane 安装准备工作 一、安装xcode命令行工具 xcode-select --install 如...
    水之飞亦阅读 3,599评论 0 0
  • Fastlane 使用大致流程如下: 思路弄清楚后操作时,参照demo中的文件修改即可。参数可以自定义配置(参数说...
    TeeMo_Yan阅读 10,592评论 0 5
  • 一. 官网:Fastlane 二. 安装: 1.先安装 Xcode command line tools ...
    陳文豪阅读 2,532评论 2 0
  • 更新节点:2019-05-15由于fastlane更新频繁,已更新到 2.105.2 2.122.0更新内容:fa...
    就叫yang阅读 62,084评论 73 146
  • fastlane运行所需要的环境: OS X 10.9以上 Ruby 2.0 以上 Xcode 拥有一个开发者账号...
    阿姣_0405阅读 8,338评论 0 4

友情链接更多精彩内容