Xcode Playground Failed to launch
Asked Answered
U

3

54

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?

Unfathomable answered 3/11, 2021 at 18:5 Comment(2)
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.Actinochemistry
PSA: Please stop adding answers that are just variants of how to get to the Rosetta setting to turn it off.Bradley
P
111

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.

Predetermine answered 11/11, 2021 at 9:56 Comment(2)
are there any other solution, i way to lazy switching from rosetta and not everything I switch from muy prod app and personal app/exerciseDisparate
@Disparate yes, you can have multiple Xcodes. They may even be the same version of Xcode. Just rename the binary. Download from developer.apple.com and not the app store.Charmainecharmane
N
23

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

Nilla answered 27/2, 2022 at 21:27 Comment(0)
B
3

Right click on Xcode, Get Info, Uncheck Rosetta. Then quit Xcode from Dock and re open your playground file.

UncheckRosetta

Barley answered 28/4, 2023 at 1:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.