Mac(のFlashBuilder 4.6)でANEを使うAIRアプリケーションをデバッグしようとすると、エラーになる問題を回避する方法です。
内容はquetwo氏のブログ http://quetwo.com/2011/12/03/working-with-air-native-extensions-on-the-mac/ の最後の段落です。
-
検索パスに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
-
デスクトップや書類など検索可能なフォルダの中に新しいフォルダを作成し、.ANEファイルをコピーする。
Create a new folder on your desktop, Document folder, or somewhere where you will find it. Copy your .ANE into it.
-
このフォルダの中に
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)
-
上の
.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)
-
プロジェクトの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.
-
.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)