Bad CPU type in executable - compiling with a new mac
Trying to compile my app on mac for the first time using animate. I am getting this error:
Bad CPU type in executable...
Using Mac-mini with Ventura 13.2.1 - brand new mac no Xcode installed yet
The error there is for the 'compile-abc-64' application/utility.. which we have left as an "Intel" style binary (perhaps we should generate this as a universal binary...)
To get it to work, I think you'd just need to install the "Rosetta 2" system: https://support.apple.com/en-us/HT211861
That implies that you'd be asked to install it automatically, but I suspect it may not be working in this instance because of how it's called. Try running that compile-abc-64 file directly perhaps, if you can find it under the Finder?
Alternatively it may work if you try this from a command-line:
softwareupdate --install-rosetta
thanks
Thanks Andrew, it worked.
but now I'm facing a new issue (remind that it is my first attempt to compile my app on a mac, a new mac-mini)
both the p12 certificate + mobileProvision are valid and relatively new . Note: the p12 certificate was created via my old mac, "my original" mac, the one that i have made the certificate request with and the mac that is associated with my app keys. ( i dont know if it's related to the issue here)
Thanks Andrew & Everybidy Edan
Hi - that message doesn't appear to come from Java or from ADT, so it seems to be an Animate thing. Probably, given that you're running on a new mac, the certificate is in a folder that Animate doesn't have access to.. if you put this into a subfolder of Documents, or perhaps somewhere alongside/under where the FLA file is, then it would either have the permissions or it would ask for them?
thanks
Hello, i have the rosetta2 message on my new Mac too :
AIR_SDK_51.2.2.5/lib/aot/bin/compile-abc/compile-abc-64: Bad CPU type in executable
Compilation failed while executing : compile-abc
I installed Rosetta2 and it work but Rosetta2 will be removed next year, I think is necessary to generate an universal binary for compile-abc-64, thanks.