Universal macOS applications?

What's best way to create a "fat" binary for x86_64 + aarch64 from a Rust/Cargo project?

It looks like Rust/Cargo is capable of building only a single target at a time. I know there's cargo-lipo, but it seems to be for iOS, not macOS, and it's for static libraries, not executables.

To answer my own question, running lipo -create from command line is enough. I've filed a ticket to make this built-in into Cargo to match what Xcode does:

https://github.com/rust-lang/cargo/issues/8875

4 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.