新規に環境を構築する事になったのでメモ。
動作環境
- OS X 10.10.5
- MacBook Pro (Retina, 13-inch, Mid 2014)
- anyenv with ndenv
実際のところ
基礎環境構築
まず、基本的ツール群を導入。
$ sudo npm install appcelerator -g
$ ndenv rehash $ appc new -t titanium Finding latest version ...5.1.0 ✓ Validating security checksum ✓ Installing ... ✓ Compiling platform native modules ... (ry Appcelerator Login required to continue ...
? Appcelerator ID: <メアド> ? Password: ***********
というわけで、アカウント情報を投入。
無い場合は、記事末尾の補足を参照してください。
次に、アプリの名前と、アプリIDを入力します。
? What's the project name? Test ? What's your application id (example: com.myapp)? com.myapp
SDK環境がなければ、ここで更にインスト作業が入ります。
No Mobile SDK found, downloading ... New version available! 5.1.2.GA Downloading http://builds.appcelerator.com/mobile-releases/5.1.2/mobilesdk-5.1.2.GA-osx.zip 100% [========================================] 0.0s Extracting SDK to /Users/shuzo_kino/Library/Application Support/Titanium 100% [========================================] Setting Titanium SDK 5.1.2.GA as the default. Titanium SDK 5.1.2.GA successfully installed! *** new completed. ***
アプリケーションの用意
$ appc new -t arrow -n Hoge Appcelerator Command-Line Interface, version 5.1.0 Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved. *** new completed. ***
$ cd Hoge/ $ appc run Appcelerator Command-Line Interface, version 5.1.0 Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved. Installing dependencies... Hoge Checking for 2 modules: connector/appc.arrowdb, connector/appc.composite Fetching connector/appc.arrowdb@1.1.8 Fetching connector/appc.composite@1.1.2 Installed 2 modules Installed: connector/appc.arrowdb, connector/appc.composite INFO | Arrow/1.3.22 Hoge/1.0.0 INFO | APIKey is: **** INFO | starting connector/appc.arrowdb@1.1.8 INFO | started connector/appc.arrowdb INFO | starting connector/appc.composite@1.1.2 INFO | started connector/appc.composite INFO | Access the Arrow admin at http://127.0.0.1:8080/arrow. This will only be available on your dev environment. To enable in production, set enableAdminInProduction in your config INFO | Access the Arrow API doc at http://127.0.0.1:8080/apidoc INFO | started INFO | server started on port 8080
localhost:8080にアクセスして、以下の画面が出れば環境構築は成功です
(補足)appceleratorアカウントが無い場合
アカウントなければ、以下のサイトで取得です。
www.appcelerator.com
終わった状態で上記のようにアカウント情報を打ち込むと、確認のメールがきます。
ここのIDを
? Please enter the authorization code you received via your email at mail@mail:
に入力します。
This computer is now authorized: Mac OSX Serial Number: ++++++++++ You can deauthorize this computer by logging out with appc logout Generating Developer Certificate and Private/Public Keys...