25

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?

1
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
    – Community Bot
    Nov 5, 2021 at 10:24

2 Answers 2

67

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.

1
  • 8
    are there any other solution, i way to lazy switching from rosetta and not everything I switch from muy prod app and personal app/exercise
    – Farhandika
    Jan 10 at 12:15
3

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.