bad CPU type in executable: svg2key

I'm trying to run svg2key on a MacOs 13.3.1 and I'm getting the message "bad CPU type in executable". Any hint on how to fix that? Or the svg2key does not work on M1 machines?

MacBook Air 13″, macOS 13.3

Posted on May 24, 2023 1:43 PM

Reply
2 replies

May 24, 2023 1:59 PM in response to rodrigobrod

Run this command in the Terminal, it should return one or two results depending on if the executable is a Universal binary or not:


file /path/to/svg2key

svg2key: Mach-O 64-bit executable arm64

svg2key: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]


If it reports anything else, it is not a compatible binary for an M1 Mac. You will need Rosetta2 installed to run X86_64 only binaries on an M1 Mac, and then only if they are supported by Rosetta2 which it would prompt you to install when attempting to run an X86_64 binary.


Or, you are running a 32-bit compiled application which is verboten on M1 Macs.



May 24, 2023 3:28 PM in response to rodrigobrod

If I’ve found the right origin for that app…


https://mcb.berkeley.edu/labs/zusman/dave/svg2key/


That app was seemingly built for OS X 10.4.


It’s old, and very likely is 32-bit. If so, it won’t run on current macOS.


It’ll need to be rebuilt for 64-bit. Which can be easy, or can be intractable.


This alternative app looks more likely to work:


https://siplab.org/releases/SVG2Keynote

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

bad CPU type in executable: svg2key

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.