首页 > 解决方案 > 为什么使用fastlane match nuke时还需要输入密码

问题描述

现在我忘记了fastlane match密码,我没有任何办法找出密码是什么。所以我想使用这个命令重置密码(我从https://github.com/fastlane/fastlane/issues/6297得到这种方式):

fastlane match nuke distribution 

但仍然告诉我输入Passphrase for Match storage

$ fastlane match nuke distribution                                                                                                                             ‹ruby-2.7.2›
[✔] 
[12:21:55]: fastlane detected a Gemfile in the current directory
[12:21:55]: However, it seems like you didn't use `bundle exec`
[12:21:55]: To launch fastlane faster, please use
[12:21:55]:
[12:21:55]: $ bundle exec fastlane match nuke distribution
[12:21:55]:
[12:21:55]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[12:21:56]: In the config file './fastlane/Matchfile' you have the line git_url, but didn't provide any value. Make sure to append a value right after the option name. Make sure to check the docs for more information
[12:21:56]: In the config file './fastlane/Matchfile' you have the line username, but didn't provide any value. Make sure to append a value right after the option name. Make sure to check the docs for more information
[12:21:56]: Successfully loaded '/Users/dolphin/Documents/GitHub/flutter-netease-music/ios/fastlane/Matchfile' 

+-----------------+---------------------------+
| Detected Values from './fastlane/Matchfile' |
+-----------------+---------------------------+
| git_branch      | master                    |
| storage_mode    | git                       |
| type            | adhoc                     |
| app_identifier  | ["com.reddwarf.musicapp"] |
+-----------------+---------------------------+

Available session is not valid any more. Continuing with normal login.
[12:21:59]: To not be asked about this value, you can specify it using 'git_url'
[12:21:59]: URL to the git repo containing all the certificates: https://github.com/jiangxiaoqiang/music-certificate.git
[12:22:19]: Cloning remote git repo...
[12:22:19]: If cloning the repo takes too long, you can use the `clone_branch_directly` option in match.
[12:22:21]: Checking out branch master...
[12:22:21]: Enter the passphrase that should be used to encrypt/decrypt your certificates
[12:22:21]: This passphrase is specific per repository and will be stored in your local keychain
[12:22:21]: Make sure to remember the password, as you'll need it when you run match on a different machine
[12:22:21]: Passphrase for Match storage: ******
[12:22:31]: Type passphrase again: ******
[12:22:33]: wrong final block length
[12:22:33]: Couldn't decrypt the repo, please make sure you enter the right password!
keychain: "/Users/dolphin/Library/Keychains/jiangxiaoqiang-db"
version: 512
class: "inet"
attributes:
    0x00000007 <blob>="match_https://github.com/jiangxiaoqiang/music-certificate.git"
    0x00000008 <blob>=<NULL>
    "acct"<blob>=<NULL>
    "atyp"<blob>="dflt"
    "cdat"<timedate>=0x32303231303831383034323233335A00  "20210818042233Z\000"
    "crtr"<uint32>=<NULL>
    "cusi"<sint32>=<NULL>
    "desc"<blob>=<NULL>
    "icmt"<blob>=<NULL>
    "invi"<sint32>=<NULL>
    "mdat"<timedate>=0x32303231303831383034323233335A00  "20210818042233Z\000"
    "nega"<sint32>=<NULL>
    "path"<blob>=<NULL>
    "port"<uint32>=0x00000000
    "prot"<blob>=<NULL>
    "ptcl"<uint32>=0x00000000
    "scrp"<sint32>=<NULL>
    "sdmn"<blob>=<NULL>
    "srvr"<blob>="match_https://github.com/jiangxiaoqiang/music-certificate.git"
    "type"<uint32>=<NULL>
password has been deleted.
[12:22:33]: Enter the passphrase that should be used to encrypt/decrypt your certificates
[12:22:33]: This passphrase is specific per repository and will be stored in your local keychain
[12:22:33]: Make sure to remember the password, as you'll need it when you run match on a different machine
[12:22:33]: Passphrase for Match storage:

我真的不记得密码了,我只记得我设置的密码密码很简单,但输入后告诉我不正确。我应该怎么做才能重置密码或找到密码?我已尝试删除所有证书文件以重新生成证书信息,但仍需要输入Passphrase for Match storage.

标签: fastlane

解决方案


您需要创建一个新的 git repo并使用新创建的 repo URL更新您的Matchfile 。然后你应该能够在不输入任何密码短语的情况下运行

bundle exec fastlane match nuke 分发

如果您仍有问题https://github.com/fastlane/fastlane/discussions,请随时在此处展开​​讨论


推荐阅读