public class Main extends Sprite { public function Main():void { stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; stage.addEventListener(Event.DEACTIVATE, deactivate); // touch or gesture? Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; // entry point // new to AIR? please read *carefully* the readme.txt files! var text:TextField = new TextField(); text.text = "Hello World"; this.addChild(text); } private function deactivate(e:Event):void { // auto-close NativeApplication.nativeApplication.exit(); } }
3.設定SetupApplication.bat,將p12檔與發佈檔(mobileprovision)填入後執行。
參考在Windows使用OpenSSL將開發人員憑證轉換成 P12 檔案與Windows產生iOS App(ad-hoc)描述檔完整流程
4.執行PackageApp.bat,選擇[8] "ad-hoc" (ipa-ad-hoc),並輸入p12密碼封裝成ipa檔
沒有留言:
張貼留言