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.

在这里插入图片描述

解决办法:

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


版权声明:本文为Asabc12345原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。