[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fjz_mDeOyjPKuWKWoxms9NQCLK35xwyxAvBnVDBKeSeI":3},{"code":4,"message":5,"data":6},200,"成功",{"id":7,"createdAt":8,"title":9,"content":10,"summary":11,"image":12,"uid":13,"user":14,"categoryId":21,"category":22,"subCategoryId":24,"subCategory":25,"comments":27,"status":17,"reason":28,"notice":28,"visitCount":29,"commentCount":30,"keywords":31},7,"2024-01-08T15:54:37.173Z","fastlane match - Passphrase for Match storage - forget","### 一、背景\n使用fastlane来管理iOS的证书时，有时候由于人事交接不完全，或者首次生成证书的那个电脑由于某种原因丢失fastlane match密码。造成在使用fastlane来打包时，需要输入密码，否则打包进行不下去。\n\n### 二、问题\nPassphrase for Match storage:******\nType passphrase again:****\nCouldn't decrypt the repo, please make sure you enter the right password!\n\n### 三、问题截图\n![](https://image.xinwei.ltd/image_11704728706442.png)\n\n\n### 四、问题分析：\n1.fastlane管理证书流程：\n- 需要使用公司的一个gitlab或者github仓库来存储证书，在iOS工程的fastlane文件夹下的Matchfile文件中进行配置。\n![](https://image.xinwei.ltd/image_21704728742915.png)\n\n- 在fastlane文件夹下的Appfile中配置bundle id、Apple账号等\n![](https://image.xinwei.ltd/image_31704728768119.png)\n\n2. fastlane match时会将初次设置的密码存在钥匙串中。\n![](https://image.xinwei.ltd/image_41704728793974.png)\n\n3. fastlane match --help命令可以查看fastlane match后面的指令参数。其中有一个change_password的指令，表示可以更改加密证书的密码。\n![](https://image.xinwei.ltd/image_51704728814106.png)\n\n4. 如果清空证书git仓库中的证书，是可以重新执行fastlane match来设置加密/解密证书的密码的。\n5. 如果Apple证书中心上的发布证书已经有2个，或者开发证书已经有4个（针对同一个bundle id），那么fastlane去生成证书时就会报错，表示证书已经达到创建上限，无法由fastlane再次生成。\n\n### 五、解决办法：\n解决密码问题的方法在于2种：\n第一，就是按照2中的步骤，去钥匙串中查找match开头的那个密码，尝试输入，测试是否可以解决。\n第二，要么就是需要清空证书git仓库下的所有证书（要删除Apple证书中心无用的一些证书，让fastlane可以创建新证书，否则数量超发，新建不了）。然后在iOS工程的fastlane文件夹所在的目录下，重新执行fastlane match (development、distribution)，等待fastlane通过Apple API去Apple证书中心生成新证书和profile文件，等在Apple证书中心生成新证书后，会自动下载到本地并安装到钥匙串中。\n\n删除Apple证书中心的证书的命令：\n```language\nfastlane match nuke (develop、distribution)\n```\n\n可以用来删除证书和profile，执行这个命令时，会让你选择删除哪些证书。\n","一、背景 使用fastlane来管理iOS的证书时，有时候由于人事交接不完全，或者首次生成证书的那个电脑由于某种原因丢失fastlane match密码。造成在使用fastlane来打包时，需要输入密码，否则打包进行不下去。 二、问题 Passphrase for Match storage: Type passphrase again: Couldn't decrypt the repo, pl","https://image.xinwei.ltd/image_11704728706442.png",499668042977349,{"phone":15,"userId":13,"nickName":16,"vipType":17,"avatar":18,"sign":19,"createdAt":20},"13121171998","全栈老韩",1,"https://image.xinwei.ltd/images/IMG_5430.JPG","全栈工程师，擅长iOS App开发、前端（vue、react、nuxt、小程序&Taro）开发、Flutter、React Native、后端（midwayjs、golang、express、koa）开发、docker容器、seo优化等。","2024-01-01T16:14:30.305Z",2,{"id":21,"name":23},"IT技术",3,{"id":24,"name":26,"parentId":21},"iOS",[],"",977,0,"fastlane,fastlane match,Passphrase for Match storage,ios fastlane"]