読者です 読者をやめる 読者になる 読者になる

あいつの日誌β

あいつの日誌です。

How to create PhoneGap Application within Sencha Touch

How to create PhoneGap Application within Sencha Touch

my enviroments

% sencha help | head -n 1
Sencha Cmd v4.0.1.45

testing

create demo project

% cd ~
%sencha -sdk ~/Library/touch-2.3.1/ generate app MyApp ./MyApp 
% cd MyApp
% sencha phonegap init com.mycompany.MyApp MyApp

we need phonegap command and ios-sim

% npm install -g phonegap
% brew install ios-sim

run app in ios-simulator

% sencha app build -run native  

it's cool.

buidling

To build sencha test app

% sencha app build testing
% ls build/testing/
MyApp

To build sencha prodcution app

% sencha app build production
% ls build/production
MyApp

To package your application for distribution on App Stores.

% sencha app build native
% ls phonegap/platforms/ios/ 
CordovaLib      MyApp.xcodeproj cordova         www
MyApp           build           platform_www

open project by xcode

% open phonegap/platforms/ios/MyApp.xcodeproj

implementing

% sencha fs web -p 8000 start -map ./

open app by your browser.

% open http://localhost:8000/

enjoy!