actionscript 3 - ADT works with ipa-test-interpreter but not ipa-test -
i use getting #as3 / #air application running on #ios !
right have .swf (v11) i'm converting .ipa using adobe air (v3.7) on windows (7).
if conversion -target of ipa-test-interpreter works great.
if conversion ipa-test, ipa-debug, ipa-ad-hoc, or ipa-appstore, application seems compile fine upon execution of app on ipad shows black screen.
connecting ipad desktop , monitoring console output, see not crash or error messages generated; app appears behave fine internally, it's lost external output.
this means can test , develop won't ever able deploy app-store. else run this?
googling around i've run other people encountering problem, no solutions yet. 1 thing tried removing native extensions, , tried removing -c compiler directive. no luck on either.
to clear, app runs totally fine on mac, pc, android, browser, , on ios in interpreter mode; it's native-compilation on ios that's broken. i've heard rumours ipa-test , ipa-interpreter have different memory allocation routines, don't know enough low-end here figure out.
the remote debugger (in flashdevelop) doesn't seem connect either. think it's failing before runtime fires fully, somehow? i'm watching console output using iphone-configuration-utility , there isn't abnormal showing up.
temporary file link sample project , instructions: https://dl.dropboxusercontent.com/u/1348446/test.zip
figured out. rundown:
the adt command line has -c flag change current working directory on command line, allows keep project better organized , keep command line bit more sane. -c can called many times want when importing assets, , used several times. ides flashdevelop use -c in air template files sorta standard behaviour. quick example of asset inclusion:
adt.exe [blah blah] assets/icons/icon1.png assets/icons/icon2.png
is same as
adt.exe [blah blah] -c assets/icons icon1.png icon2.png
(and, wildcard use) same as
adt.exe [blah blah] -c assets/icons .
as have different compiling instruction sets ios, android, steam, etc., had adt switch directories variable current config , execute there.
this works fine , as-documented in ipa-test-interpreter mode. when in native-code mode (ipa-test), however, including main executable .swf after -c command [somehow reason] messes internal pathing; file ends being included ends being "file not found" internally when executed, hence blank screen , no code executing.
so fix include .swf current directory, before calls -c. quick example of workaround tested a-okay:
copy /bin/flash/game.swf ./ adt [stuff] game.swf -c assets/icons . del game.swf
i've gotten in touch adobe , they'll fix -c it's functionality same both compile targets in future.
Comments
Post a Comment