美文网首页集成工具iOS DeveloperiOS开发
[Fastlane笔记] 二. iOS Team中使用 Fast

[Fastlane笔记] 二. iOS Team中使用 Fast

作者: afluy | 来源:发表于2016-11-30 19:26 被阅读1333次

如果团队中新来了童鞋, 可以让他执行下面的流程来配置 iOS 开发的证书和 profile

  • clone 项目代码库

  • 进入项目目录, 安装 Gemfile 文件中定义的依赖

sudo bundle install
  • 下载证书和 profile, 以后如果证书或 profile 失效都可以执行该命令
match development --readonly  //执行该命令时会要求输入解密密码
match adhoc --readonly  
match appstore --readonly 

命令执行成功后, Keychain 中会添加两个证书:

Paste_Image.png

~/Library/MobileDevice/Provisioning Profiles 目录中会添加三个新的 profile 文件

  • 在 Xcode 中不选择 Automatically manage signing, 而是选择刚才新下载的 profile 文件和证书

Signing(Debug) 中选择 match Development {{Bundle Identifier}}
Signing(Release) 中选择 match AppStore {{Bundle Identifier}}
Signing(AdHoc) 中选择 match AdHoc {{Bundle Identifier}}

Paste_Image.png
  • 将项目 clean 一下重新编译 (重要一步)
  • 将项目变更提交到项目 git 库

到此整个开发 Team 都只用 match 私有 git 库上的证书和 profile, 证书得到了统一管理 👏

相关文章

网友评论

  • kyson老师:我也写了一篇,供大家参考:iOS使用fastlane一键打包审核
    http://kyson.cn/index.php/archives/103/
  • 会疼的白痴:你好,我想问一下就是我是先传证书.cer和provisioning profile,可是我是怎么配置match啊,我看你使用match development就可以获取开发证书和描述文件,可是这个match就是在fastfile中配置的lane吗?
    3dc31e2e5685:开发证书p12可以加载吗
    afluy: @会疼的白痴 match是fastlane中单独的模块,你可以去fastlane的github wiki上详细看看文档

本文标题:[Fastlane笔记] 二. iOS Team中使用 Fast

本文链接:https://www.haomeiwen.com/subject/cmhzpttx.html