LoginSignup
2
2

More than 5 years have passed since last update.

RubyMotionでGUIなしの環境からビルドしたい

Posted at

Developer Programの証明書をインストールするためのキーチェーンを作る(これはGUIで作った)
キーチェーンの名前は「xxx」だとして以下説明。

そのキーチェーンp12ファイルをインポート

security import xxx.p12 -k xxx.keychain -P [p12ファイルを作る時に設定したパスフレーズ] -T /usr/bin/codesign

次のようなシェルスクリプトで実行

cd /Users/shida/work/xxx/ios
# rvm環境だとして
. /Users/shida/.rvm/environments/ruby-1.9.3-p484@xxx_ios
security unlock-keychain -p [キーチェーンを作る時に設定したパスワード]
rake archive

rakeする前に「security unlock-keychain」しとかないと

 User interaction is not allowed.

みたいなエラーがどうしても出てしまうが、unlockしておくと回避出来るっぽい。

2
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
2
2