titanium studio by winodws7 を卒業して titanium cli + tishadow by ubuntu12.04にしてみた②

前回、環境構築からandroid実機転送までいけたので、いよいよtishadow

vagrantfileのネットワーク設定をブリッジアダプター&NATよりも優先に変更

アダプター名はvirtualboxguiで確認(もしくはコマンドで確認 => VBoxManage list bridgedifs)

config.vm.network :public_network, :public_network => "アダプター名"
サーバー起動

windowsのブラウザからubuntuのip+ポート番号3000でアクセス確認

tishadow server
tishadowapp作成&アプリ実機インストール
mkdir ~/tishadowapp && tishadow app -d ~/tishadowapp
cd ~/tishadowapp
titanium build -p android -T device

エラーでたのでtiapp.xmlのバージョンを3.1.1.GAに変更して再実行

[ERROR] Unable to compile project because the 'sdk-version' in the tiapp.xml is not installed

The project's sdk-version is currently set to 3.1.0.GA, which is not installed.

Update the sdk-version in the tiapp.xml to one of the installed Titaniums SDKs:
    3.1.1.GA
or run 'titanium sdk install 3.1.0.GA' to download and install Titanium SDK 3.1.0.GA
インストールしたtishadowアプリ起動してubuntuのip入力
前回作ったhellowroldアプリフォルダに移動してコマンド入力
cd helloworld
tishadow run

いけたー
たしかに速い3秒ぐらい?
ネットワークまわりの設定でくじけそうになったけどなんとかいけてよかったー
というかandroidwifiが切れまくりでtishadow様がエラーだしまくりなのと
tishadow runコマンド毎回打たなくていいようにしたい

参考
virtualbox - Vagrant how to set network type so that its attached to bridge adapter on Virtual Box - Stack Overflow
Vagrant Documentation - Documentation - Bridged Networking
getting started
dbankier/TiShadow · GitHub
Titanium Mobile / TiShadow 導入→動作確認まで - なんかできたよー。