Xcode Playground Failed to launch

Viewed 8816

I can't run any Xcode Swift Playground project without getting the error:

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

Does anyone know how to solve this?

2 Answers

I've the same issue. If I launch Xcode using rosetta, it doesn't show anything. You must switch off rosetta and it works perfect.

To expand on @E.P's answer

To put off rosetta Go to Aplications-->Xcode-->Get info --> Uncheck rosetta.
You need to restart the system in some cases.

Related