After transferring an Xcode project from an Intel Mac to an Apple M1 chip, the code compiles successfully on the M1 chip, but displays the following error when running:
Message from debugger: debug-server is x86_64 binary running in translation, attached failed.
Workaround:
I’ve checked Xcode’s “Open with Rosettea” option, but it still doesn’t work on the M1 chip. So this program doesn’t work for me. . .
Valid plans:
Find Edit Scheme -> Run -> Debug excitable, cancel this option to run successfully.
Note: If this method does not solve your problem, please refer to the link below:
debugserver is x86_64 binary running in translation, attached failed. Could not attach to pid :