LoginSignup
8
8

More than 5 years have passed since last update.

MacでANEを使うアプリをデバッグする

Last updated at Posted at 2014-05-12

Mac(のFlashBuilder 4.6)でANEを使うAIRアプリケーションをデバッグしようとすると、エラーになる問題を回避する方法です。

内容はquetwo氏のブログ http://quetwo.com/2011/12/03/working-with-air-native-extensions-on-the-mac/ の最後の段落です。

  1. 検索パスにADLを含める。/etc/pathsファイルに/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/binの行を追加する。

    Make sure you have ADL in your search path. Edit the /etc/paths file and add a new line with /Applications/Adobe Flash Builder 4.6/sdks/4.6.0/bin

  2. デスクトップや書類など検索可能なフォルダの中に新しいフォルダを作成し、.ANEファイルをコピーする。

    Create a new folder on your desktop, Document folder, or somewhere where you will find it. Copy your .ANE into it.

  3. このフォルダの中にMyTestANE.aneという名前のフォルダを作成する。(.aneが含まれていることが重要)
    (訳註)フォルダの名前は.aneで終わっていれば何でも良い様子。

    Create a new folder within this folder, and name it MyTestANE.ane (make sure to include the .ane — that is very important)

  4. 上の.aneフォルダで次のコマンドを実行する。
    unzip ../ArduinoConnector.ane
    (.ANEファイルの名前がArduinoConnector.aneの場合)

    cd into that new .ane directory, and execute the following command : unzip ..\ArduinoConnector.ane (assuming you named your .ane ArduinoConnector.ane)

  5. プロジェクトのbin-debugフォルダで次のコマンドを実行する。
    adl -profile extendedDesktop -extdir ~/Documents/Extensions/ Main-app.xml
    (2.で文書フォルダの中に新しくExtensionsフォルダを作った場合)

    Go into the bin-debug folder of your project, and run the following command : adl -profile extendedDesktop -extdir ~/Documents/Extensions/ Main-app.xml assuming that the directory you created in the second step was named Extensions and was located in your Documents folder.

  6. .ANEファイルを更新する必要がなければ、5.を繰り返せばよい。
    デバッガやプロファイラをアタッチするには、このブログの手順に従う(ただしhttp://localhostの代わりにabout:blankを使う)

    You can repeat the last step as often as you need with no additional work, assuming you don’t need to update your .ane. If you need to attach the debugger / profiler , you can follow the steps outlined on this blog (but use about:blank instead of http://localhost)

8
8
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
8
8