Created
June 25, 2012 17:59
-
-
Save itoz/2990231 to your computer and use it in GitHub Desktop.
FDT5.5 で AIR3.3 iOS USBデバッグするためのANTテンプレート ref: http://qiita.com/items/0bb69a83781b48707aec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="**********"> | |
<!-- ===================================================================================== | |
FDT5.5 で AIR3.3 iOS USBデバッグするためのANTテンプレート | |
--> | |
<property name="PROJ_NAME" value="**********"></property> | |
<property name="PROVISIONING" value="**********.mobileprovision"></property> | |
<property name="CERT" value="**********.p12"></property> | |
<property name="PASS" value="*******"></property> | |
<!-- ===================================================================================== --> | |
<property name="LOCAL_PORT" value="7936"></property> | |
<property name="REMOTE_PORT" value="7936"></property> | |
<!-- ===================================================================================== | |
USBデバッグモードでipa生成。 | |
--> | |
<target name="01. package for usb debug"> | |
<fdt.loadProjectProperties projectname="${PROJ_NAME}" /> | |
<exec executable="${FDTProjectSdkPath}/bin/adt" failonerror="true" | |
dir="../bin"> | |
<arg value="-package" /> | |
<arg value="-target" /> | |
<arg value="ipa-debug-interpreter" /> | |
<arg value="-listen" /> | |
<arg value="${LOCAL_PORT}" /> | |
<arg value="-provisioning-profile" /> | |
<arg value="${PROVISIONING}" /> | |
<arg value="-storetype" /> | |
<arg value="pkcs12" /> | |
<arg value="-keystore" /> | |
<arg value="${CERT}" /> | |
<arg value="-storepass" /> | |
<arg value="${PASS}" /> | |
<arg value="${PROJ_NAME}.ipa" /> | |
<arg value="${PROJ_NAME}-app.xml" /> | |
<arg value="${PROJ_NAME}.swf" /> | |
</exec> | |
</target> | |
<!-- ===================================================================================== | |
iOSをUSB接続後、下記を実行するとドバイスハンドルが取得できる。 | |
取得後その値を「05. forward ports for USB debug」の最下段に設定する | |
--> | |
<target name="02. show connected devices"> | |
<fdt.loadProjectProperties projectname="${PROJ_NAME}" /> | |
<exec executable="${FDTProjectSdkPath}/lib/aot/idb/idb"> | |
<arg value="-devices" /> | |
</exec> | |
</target> | |
<!-- ===================================================================================== | |
iOS側にアプリをインストールし起動しておく。(アプリにAIRの接続待機アラートが表示される) | |
--> | |
<target name="04. start FDT debugger for usb debug"> | |
<fdt.loadProjectProperties projectname="${PROJ_NAME}" /> | |
<fdt.startDebugger projectname="${PROJ_NAME}" port="${LOCAL_PORT}" | |
asclient="true" /> | |
</target> | |
<!-- ===================================================================================== | |
USBデバッグを開始する。 | |
--> | |
<target name="05. forward ports for USB debug"> | |
<fdt.loadProjectProperties projectname="${PROJ_NAME}" /> | |
<exec executable="${FDTProjectSdkPath}/lib/aot/idb/idb"> | |
<arg value="-forward" /> | |
<arg value="${LOCAL_PORT}" /> | |
<arg value="${REMOTE_PORT}" /> | |
<arg value="2" /> | |
</exec> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment