LoginSignup
3
2

More than 5 years have passed since last update.

xcodebuildコマンドを叩いてCodesignエラーが出たときの対処法

Last updated at Posted at 2013-09-27

実行したコマンドと結果

  • xcodebuildをコマンドラインで実行すると、Codesignエラーがでた
The following build commands failed:
CodeSign ./Frank/frankified_build/Applications/HOGE.app
(1 failure)
  • 実行したxcodebuildコマンドは以下の通り
$ xcodebuild \
  -target HOGE \
  -xcconfig ./Frank/frank.xcconfig \
  -arch armv7 \
  -configuration Debug \
  -sdk iphoneos \
  DEPLOYMENT_LOCATION=YES \
  DSTROOT="./Frank/frankified_build" \
  FRANK_LIBRARY_SEARCH_PATHS="./Frank" \
  clean build

対処法

  • 原因は他にもある場合もあるが、可能性の1つとして参考にしてもらえれば!
    • xcodebuildを実行する前に以下を実行する
$ security unlock-keychain -p <ログインパスワード> <キーチェーンのパス>
# ex) 
# security unlock-keychain -p password /Users/foo/Library/Keychains/login.keychain

~ただの宣伝~

  • 全国のSeleniumer必読
  • Seleniumerといっていますが、Selenium, SauceLabs, Travis, Jenkinsに関するノウハウ書いているのでよかったら参考にしてみてください
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2