I just shifted my Xcode project from my Intel Mac to Apple M1 Chip. The code is compiled successfully on M1 Chip but once I tried to run it on simulator it shows the following error.
debugserver is x86_64 binary running in translation, attached failed.
I have checked the "Open using Rosettea" option for Xcode but it still not running M1 machine.
With Mac M1 you could also exclude arm64 in your target
Target > Build Settings > Excluded Architectures --> add "arm64"
If an update isn’t available from the vendor, temporarily use the EXCLUDED_ARCHS build setting to exclude arm64 for the simulator SDK as shown in the figure below. Do not exclude arm64 for any other SDK.