Message from debugger: debug-server is x86_64 binary running in translation, attached failed.

Xcode 项目 从Intel Mac 转移到 Apple M1 芯片后,代码在 M1 芯片上成功编译,但在运行时会显示以下错误:

Message from debugger: debug-server is x86_64 binary running in translation, attached failed.

Message from debugger: debug-server is x86_64 binary running in translation, attached failed._第1张图片

解决办法:

根据网上的方法,我已经检查了 Xcode 的“使用 Rosettea 打开”选项,但它仍然没有在 M1芯片上运行成功。故而该方案对我不适用。。。
Message from debugger: debug-server is x86_64 binary running in translation, attached failed._第2张图片
有效方案:
找到Edit Scheme -> Run -> Debug excitable,取消该选项即可运行成功。
Message from debugger: debug-server is x86_64 binary running in translation, attached failed._第3张图片
注:如果该方法未能解决你的问题,请参考下面链接:
debugserver is x86_64 binary running in translation, attached failed. Could not attach to pid :

你可能感兴趣的:(xcode,macos,ide)