Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
IPA packing problem on MacOS version 15.4
I am using the latest version of AIR, which is 51.2, to package the IPA file, but I'm encountering an issue: my SWF files are not having their ABC code extracted, and the externalstrippedswfs folder is not being generated as usual. Instead, the assets folder (which contains the SWF files that need ABC code extraction) is simply being packaged inside the IPA file.
Here's my command:
outdir=../../bin outswf=outswfs tzdir=tzsrc assdir=assets swfdir=externalStrippedSwfs appfile=monostep.ipa passw=tbsZa6F8EbYyxVWL airsdk=~/flexairsdk iossdk=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk target="ipa-app-store" provisioning=store.mobileprovision cert=store-tbsZa6F8EbYyxVWL.p12
/usr/bin/java -Xms32m -Xmx8192m -jar $airsdk/lib/adt.jar -package -target $target -provisioning-profile $provisioning -storetype PKCS12 -keystore $cert -storepass $passw $outdir/$appfile $outdir/vuahaitac-iphone.xml -platformsdk $iossdk -C $outdir/ appeasy.swf clientid.txt icons/16x16.png icons/29x29.png icons/32x32.png icons/36x36.png icons/40x40.png icons/48x48.png icons/57x57.png icons/58x58.png icons/60x60.png icons/72x72.png icons/76x76.png icons/80x80.png icons/87x87.png icons/114x114.png icons/120x120.png icons/128x128.png icons/144x144.png icons/152x152.png icons/167x167.png icons/180x180.png icons/512x512.png icons/1024x1024.png icons/50x50.png icons/75x75.png icons/100x100.png -C ./ externalSwfs.txt $assdir Assets.car
externalSwfs.txt file contents:
assets/swfs/garden/pots/pot4.swf assets/swfs/garden/pots/pot2.swf assets/swfs/garden/pots/pot3.swf assets/swfs/garden/pots/pot1.swf assets/swfs/TownTeamModule/TownTeamModule.swf assets/swfs/TownTeamModule/TownTeamFightGoEffect.swf assets/swfs/activity/CardActivityExchangeTip.swf assets/swfs/activity/activityBtn.swf assets/swfs/activity/ActivitySignMC.swf assets/swfs/rideDecoration/decoration.swf assets/swfs/HappyBigWheelModule/HappyBigWheelRoundBg.swf assets/swfs/town/mouseEffect.swf assets/swfs/town/TownFlowerEffect.swf assets/swfs/town/changeRoleEffect.swf
I'm using MacOS version 15.4 and Apple M4 chip.
Thanks, Monostep
Hi
Just to check that your vuahaitac-iphone.xml file has got an externalSwfs entry in the <iPhone> section?
Are you able to check with the "troubleshooting" tab of the AIR SDK Manager to see what the toolchain outputs are? I'm not sure whether we do have specific logging here, but it could give us a clue as to what's happening..
thanks
I'm sure that have the rights entry in vuahaitac-iphone.xml
<iPhone>
<InfoAdditions>UIDeviceFamily
Output logs here:
/var/folders/lp/fjbm_dj569950flz4gz8zdxr0000gn/T/cmd10812032380059749143.tmp: line 2: /Users/vannn/flexairsdk/lib/aot/bin/compile-abc/compile-abc-64: Bad CPU type in executable
Thanks, VanNN
Ah:
Bad CPU type in executable
So potentially you don't have Rosetta2 installed.. what happens if you open a terminal and just call that line directly?
$ /Users/vannn/flexairsdk/lib/aot/bin/compile-abc/compile-abc-64
If that doesn't work, you could try doing it manually:
$ softwareupdate --install-rosetta
thanks
Thanks ajwfrost, compile-abc-64 is run and SDK Manager Troubleshooting logs:
ADT 51.2.1.2 called with: -package -target ipa-app-store -provisioning-profile store.mobileprovision -storetype PKCS12 -keystore store-tbsZa6F8EbYyxVWL.p12 -storepass xxxxxx ../../bin/vuahaitac.ipa ../../bin/vuahaitac-iphone.xml -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -C ../../bin/ appeasy.swf clientid.txt icons/16x16.png icons/29x29.png icons/32x32.png icons/36x36.png icons/40x40.png icons/48x48.png icons/57x57.png icons/58x58.png icons/60x60.png icons/72x72.png icons/76x76.png icons/80x80.png icons/87x87.png icons/114x114.png icons/120x120.png icons/128x128.png icons/144x144.png icons/152x152.png icons/167x167.png icons/180x180.png icons/512x512.png icons/1024x1024.png icons/50x50.png icons/75x75.png icons/100x100.png -C ./ externalSwfs.txt assets Assets.car
Warning: The path to platform sdk should end with any one of the (iPhoneOSx.x | iPhoneSimulatorx.x | AppleTVSimulatorx.x | AppleTVOSx.x) format to avoid any unintended behavior.
/Library/Developer/CommandLineTools/usr/bin/ld-classic
@(#)PROGRAM:ld-classic PROJECT:ld64-955.13
BUILD 19:59:17 Mar 12 2025
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
LTO support using: LLVM version 17.0.0 (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 17.0.0 (tapi-1700.0.3.4)
Converting SWF files into ABC
Root SWF = appeasy.swf
Stripped SWF = assets/tz/npc/npc0069.tz.txt.swf
Stripped SWF = assets/tz/npc/npc0070.tz.txt.swf
Stripped SWF = assets/tz/npc/npc0071.tz.txt.swf
Stripped SWF = assets/tz/npc/npc0072.tz.txt.swf
Stripped SWF = assets/tz/npc/npc0073.tz.txt.swf
Stripped SWF = assets/tz/npc/npc0074.tz.txt.swf
Stripped SWF = assets/tz/npc/npc0075.tz.txt.swf
Stripped SWF = assets/tz/npc/npc0076.tz.txt.swf
Stripped SWF = assets/tz/npc/npc0077.tz.txt.swf
Stripped SWF = assets/ui/ArmyModels.swf
Stripped SWF = assets/ui/UIAsset.swf
Stripped SWF = assets/ui/UIGuide.swf
Stripped SWF = assets/ui/UIMore.swf
Stripped SWF = assets/uiHD/uiHD.swf
compile-abc command line: /Users/vannn/flexairsdk/lib/aot/bin/compile-abc/compile-abc-64 -mtriple=arm64-apple-ios -filetype=obj -sdk /Users/vannn/flexairsdk/lib/aot/lib/avmglue.abc -fields /Users/vannn/flexairsdk/lib/aot/lib/air-fields.arm64-air.txt -O3 -abc-file-list=/var/folders/lp/fjbm_dj569950flz4gz8zdxr0000gn/T/d563254e-ab2c-4312-8c94-94c3f5caf0db/ABCFilesList.txt
ld64 command line: /Library/Developer/CommandLineTools/usr/bin/ld-classic -pie -ObjC -dead_strip -Z -arch arm64 -syslibroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk" -L/usr/lib -L/usr/lib/swift -F"/System/Library/Frameworks" -L"/Users/vannn/flexairsdk/lib/aot/lib" -o "/Users/vannn/haitac/loading/build/iphone/../../bin/aot17413274271671893364.tmp" -x "/Users/vannn/flexairsdk/lib/aot/lib/libRuntimeHMAOT.arm-air.a" -lc++ -lSystem.B -lz -lobjc -lclang_rt.ios -w -filelist "/var/folders/lp/fjbm_dj569950flz4gz8zdxr0000gn/T/d563254e-ab2c-4312-8c94-94c3f5caf0db/OBJFilesList.txt" -framework CoreFoundation -framework UIKit -framework MobileCoreServices -framework CoreGraphics -framework Foundation -framework SystemConfiguration -framework AudioToolbox -framework CFNetwork -framework QuartzCore -framework OpenGLES -framework CoreLocation -framework CoreText -framework CoreMedia -framework CoreVideo -framework AVFoundation -framework Security -framework GameController -framework CoreMotion -framework AssetsLibrary -framework WebKit -platform_version ios 12.0 18.2 -exported_symbols_list "/var/folders/lp/fjbm_dj569950flz4gz8zdxr0000gn/T/d563254e-ab2c-4312-8c94-94c3f5caf0db/SYMFilesList.txt"
Checking certificate chain for the issuer
Signing certificate subject name = C=US,O=Hoang Anh,OU=V7K33K997A,CN=Apple Distribution: Hoang Anh (V7K33K997A),UID=V7K33K997A
Signing certificate issuer name = C=US,O=Apple Inc.,OU=G3,CN=Apple Worldwide Developer Relations Certification Authority
Found certificate in chain, subject name = C=US,O=Hoang Anh,OU=V7K33K997A,CN=Apple Distribution: Hoang Anh (V7K33K997A),UID=V7K33K997A
Found certificate in chain, subject name = C=US,O=Apple Inc.,OU=Apple Certification Authority,CN=Apple Worldwide Developer Relations CA - G2
Found certificate in chain, subject name = C=US,O=Apple Inc.,OU=G3,CN=Apple Worldwide Developer Relations Certification Authority
Match -> found issuer
The ipa file created with assets folder without abc extracting code.
Thanks, VanNN
Hello,
How about my case, anyone help me!
Thanks, VanNN
Hi - I'd not looked fully at this, but there is a list of files that it's processing in that log (assets/uiHD/uiHD.swf etc) but the ones you mentioned previously aren't in that list (assets/swfs/garden/pots/pot1.swf etc).
Can you confirm that all of the files that are in the assets folder are also being added to the list of files for packaging? And that your XML file references the external files list?
Failing that we'd need to look at adding more debug output to ADT to work out what's happening here..
thanks
Can you confirm that all of the files that are in the assets folder are also being added to the list of files for packaging? And that your XML file references the external files list? --> I confirm.
You can easy reproduce this error by create any swfs file and put it into assets folder and use this session in XML file (application.xml)
<iPhone>
<externalSwfs>externalSwfs.txt</externalSwfs>
</iPhone>
Assume you swf file is error.swf, then externalSwfs.txt contents is:
assets/error.swf
Using my command line above to build and see the results.
My environment: AIRSDK: 51.2.1.2 Macmini: M4 chip OS version 15.4.1
Please help me!
Thanks, Monostep