Xcode Playground无法执行的问题:Failed to attach to stub for playground execution

Xcode Playground无法执行的问题:Failed to attach to stub for playground execution

Failed to launch process. Failed to attach to stub for playground execution: error: attach failed ((os/kern) invalid argument)

image.png

原因是在使用M1的芯片的电脑上安装的Xcode默认使用的以 Rosetta 模式启动。解决办法将Xcode使用Rosetta打开关掉即可。

找到Xcode App,从右键选择点击显示简介

image-20211216102227838.png

关闭使用Rosetta打开的选项

image-20211216102336379.png

你可能感兴趣的:(Xcode Playground无法执行的问题:Failed to attach to stub for playground execution)