skip to Main Content

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?

4

Answers


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

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
  3. Applications–>Xcode–>Get info –> Uncheck rosetta and restart system, then it will work perfectly.

    Login or Signup to reply.
  4. Right click on Xcode, Get Info, Uncheck Rosetta. Then quit Xcode from Dock and re open your playground file.

    UncheckRosetta

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search