LoginSignup
13
11

More than 5 years have passed since last update.

Titanium mobileアプリをsublime text2で開発する(設定編)

Last updated at Posted at 2012-11-14

Titanium Studioを起動するのが面倒だったので、
最近使ってるsublime text2で開発できるようにしたのでメモ。

【1】TitaniumのSDKをまず3.0以上に上げる

※現状beta版なので注意

下記DLサイトからインストールすると簡単。アップデートの内容は開発者ブログで確認。
DLページ
開発者ブログ

【2】Node.jsをインストール

色々インストールの方法はあれど、きっと一番迷わないので公式からインストール。
公式サイト

$node -v

バージョンが表示されればインストールOK。
一応最近の物を入れる。(11月15日現在 v0.8.14)

【3】npmからTitanium CLI をインストール

node.jsがインストールできたらnpmからTitanium CLI をインストール

・インストール

$sudo npm install -g titanium

・確認(コマンドの一覧が出ればインストール成功)

$titanium

・設定

$titanium setup

What is your name? (名前)
What is your email address used for logging into the Appcelerator Network? (E-mail)
What would you like as your default locale?(ja-jp)
What Titanium SDK would you like to use by default? (3.0以上を選択)※必須
Path to your workspace where your projects should be created (作業用フォルダパス)
Path to the Android SDK (Android SDKまでのパス)

【4】プロジェクトの作成

インストール、設定ができたのでプロジェクトを作成する。


$titanium create

Target platforms: (android,ios,ipad,iphone,mobileweb) (iphone)
App ID: (App ID)
Project name: (プロジェクト名)

[INFO] Creating Titanium Mobile application project
[INFO] Project 'testProject' created successfully in XXms

【5】ビルド

今回はひと通りの設定ができるようにするためなので
そのままビルドをためす。


$titanium build -d プロジェクトフォルダのパス

Target platform [android,iphone,mobileweb]:( iphone)

これでビルドが出来れば設定が完了。
好きなエディタでTitaniumアプリを開発できる。


今回はまったく出て来なかったが
次回はsublime text2のおすすめ設定を記載する予定です。


素敵参考サイト様
imthinker.net

13
11
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
13
11