在 jenkins 里使用命令行打包一直提示找不到证书
Xcode couldn't find any iOS App Development provisioning profiles matching
一番搜索后在终端敲入如下命令:
mac@iMac ~ % security unlock-keychain -p password "/Library/Keychains/System.keychain"
security: SecKeychainUnlock /Library/Keychains/System.keychain: The user name or passphrase you entered is not correct.
mac@iMac ~ % security unlock-keychain
password to unlock default:
mac@iMac ~ % security list-keychains -s "~/Library/Keychains/System.keychain"
mac@iMac ~ % security list-keychains -s "~/Library/Keychains/System.keychain"
mac@iMac ~ % security list-keychains -s ~/Library/Keychains/System.keychain
mac@iMac ~ % security list-keychains -s /Library/Keychains/System.keychain
发现钥匙串里多了个东西(里面啥都没),并且之前自动生成的私钥证书都没了,如下图
打开 Xcode -> Accounts -> +号 去创建证书,如下图
求大佬分析下造成这个原因是什么?还能否还原?不行的话就只能重装系统了
1
zhaoxin 2023-01-29 18:53:51 +08:00
直接在 xcode 里创建也不行吗?
|