iosswiftxcodearm

debugserver is x86_64 binary running in translation, attached failed. Could not attach to pid :


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.

Xcode simulator Error

I have checked the "Open using Rosettea" option for Xcode but it still not running M1 machine.


Solution

  • 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.

    change this setting only for iOS Simulator