LoginSignup
21
20

More than 5 years have passed since last update.

FlashBuilder4.7でAIR SDKを3.4から上げる方法はSDKフォルダを上書きしないといけない

Last updated at Posted at 2013-02-21

デフォルトのAIR SDKが3.4で、SDKを追加しても無意味!SDKフォルダ上書きしないといけない!

(ActionScriptプロジェクトの場合。Flex系は普通にSDK追加→選択ができる)

現象

  • FlashBuilder4.6のときみたいにSDKの追加はできる。が、
  • ActionScriptモバイルプロジェクトなどのAS系プロジェクトでは、デフォルトSDKしか選択できない

↓こんな感じ。
http://gyazo.com/5f9b44cdab9f9cddeba2647d0d754655

「アップデートを確認」をしても、なにも起きない

このへんで指摘されてる
http://forum.starling-framework.org/topic/flash-builder-47-update-tips

Adobeのひとは「いい感じにするよ!」との言葉を放ち、2ヶ月がすぎている。

やり方

公式に書いてあるが、AIR3.6をこのままやると動かなくなる
http://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder.html

1.ここのAIR SDKを新しいのに上書きする

  • Windows 7:
    • C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.7\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722
  • Mac OS:
    • /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722

2.stripフォルダを作成

AIRSDK\lib\aot\bin

にstripフォルダを作成

3.FlashBuilderを再起動

これで新しいSDKが設定されてるはず。

以下公式の方法をやると失敗する、というログ。

(失敗するやりかた) 2.aotフォルダをごにょる

デフォルトのSDKのlib/aotフォルダをコピーして新しいところに持っていく
Copy the contents from the aot folder (AIRSDK_back_up\lib\aot) of the AIR SDK backup to the aot folder of the newly created AIR SDK (AIRSDK\lib\aot).

(失敗するやりかた) 3. AIR 3.6以上の場合はstripフォルダを作成(さっきコピーしたaot/binの中になければ)

Note: If you update Flash Builder 4.7 with AIR SDK 3.6 or later, create an empty folder named strip. Put it in the following location of the newly extracted folder if it doesn't exist: AIRSDK\lib\aot\bin

(失敗するやりかた) 4.と思ったら、エラー

SDK is missing GPL component /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK/lib/aot/bin/as/as-arm

なので、
新しいSDKのaot/binの中にあった

  • as-arm
  • as-386

を追加してみた

するとまたエラー

/var/folders/r9/hn2_9_l908l2ttgqsbqp1vxc0000gn/T/cmd497154224586632122.tmp: line 2: /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK/lib/aot/bin/ld64/ld64: No such file or directory
Compilation failed while executing : ld64

aot/bin/ld64/ld64

-ld64をコピー

エラーは消えたが、アプリを開くと真っ黒画面になって、ちゃんと起動しないという恐ろしい結果に…。

21
20
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
21
20