LoginSignup
3
3

More than 5 years have passed since last update.

Adobe AIRでiOS出力だけ動かないとき

Posted at

Adobe AIRでアプリを作っていって、Windows出力も、Android出力も動くけど、iOSだけスプラッシュが表示されてから動かなくなる現象の解決法です。

特に、ios-test-interpreter、ios-debug-interpreterはうごくけど、ios-test、ios-debug、ios-ad-hoc、ios-app-storeが動かない場合。

AIRのapplication.xmlでサブディレクトリを使って、initialWindowのcontentを指定するとこの現象がおきます。

ダメな例
<content>bin/flash/bin/Main.swf<content>
良い例
<content>Main.swf<content>

Main.swfはカレントディレクトリ直下に置きましょう。

OpenFL -> SWF -> AIRって出力しようとするとSWFの出力先が深いディレクトリになるので、この罠にはまりやすい。Xcodeでログ拾おうとしてもロクなエラーメッセージが出てこなくて手掛かり無しなのではまると辛い。(辛かった)

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