A value is required for '--target <targets>...' but none was supplied

➜ ~ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=default -t --target x86_64-apple-darwin --no-modify-path

This line worked fine before, but for some reason now it's giving me an error.

Can anyone help me?

--target=x86_64-apple-darwin?

If you're trying to add x86 support to an Apple Silicon Mac, this is the wrong way to do it.

Don't pass any --target, allow rustup to install native ARM version, and then run rustup target add x86_64-apple-darwin to add an Intel toolchain to an ARM installation.

Otherwise you will get toolchain running under Rosetta, which is not only significantly slower, but also completely unaware of the OS it's running on, and without fat binary support. This results in tons of surprising problems when linking libraries.

1 Like

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.