Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

Bad CPU type in executable - compiling with a new mac

Open idanasher opened this issue 2 years ago • 4 comments

Trying to compile my app on mac for the first time using animate. I am getting this error:

Bad CPU type in executable...

WhatsApp Image 2023-11-07 at 09 22 34

Using Mac-mini with Ventura 13.2.1 - brand new mac no Xcode installed yet

idanasher avatar Nov 08 '23 09:11 idanasher

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

ajwfrost avatar Nov 08 '23 14:11 ajwfrost

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)

image

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

idanasher avatar Nov 12 '23 10:11 idanasher

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

ajwfrost avatar Nov 13 '23 08:11 ajwfrost

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.

pol2095 avatar Nov 21 '25 22:11 pol2095