[Fastlane笔记] 二. iOS Team中使用 Fastlane match 管理证书和 profile

如果团队中新来了童鞋, 可以让他执行下面的流程来配置 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, 证书得到了统一管理 👏

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容