コマンドラインからアプリをアーカイブしようとしていますが、次のエラーが発生します。
Code Sign error: The identity 'iPhone Distribution: XXX' doesn't match any valid, non-expired certificate/private key pair in your keychains
そして、私は次の行を使用してアプリをビルドおよびアーカイブしています。
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
xcodebuild -target TestAppLogicTests \
-sdk iphonesimulator \
-configuration Debug \
TEST_AFTER_BUILD=YES \
clean build | /usr/local/bin/ocunit2junit.rb
# tests passed archive app
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
/usr/bin/xcrun xcodebuild -scheme TestApp clean archive \
CODE_SIGN_IDENTITY="iPhone Distribution: XXX"
CODE_SIGN_IDENTITYが正しいと確信しています(.pbxprojファイルで確認しました)。配布証明書を再ダウンロードしようとしましたが、それも機能しませんでした。xCode自体で正常に動作しています。
誰かが私が何を試すことができるかについての考えを持っていますか?
ありがとう!