Playground starts slowly or never runs

I am a little hesitant to ask this question because it's been years, during which I hoped it's just a specific problem of my own computer or Xcode version.

I'm not sure if it's only me alone with this problem.

First time run of any playground project is extremely slow (after I open it); sometimes it just never runs with the build indicator circling forever).

This is true for objc or swift playgrounds, or different machines, different Xcode versions, different OS versions.

Can anyone help?

In my experience the most common cause of this problem is that you’re creating an iOS playground (Xcode > File > New > Playground and then choose iOS > playground-type) rather than a macOS one. To run such a playground Xcode has to spin up the simulator. Unless you need iOS-specific features, it’s much better to use a macOS playground (choose macOS > playground-type as the last step), which Xcode can run without the need for a simulator.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

My playground projects are all macOS ones.

Weird. macOS playgrounds are pretty solid for me.

Unfortunately I only have generic debugging advice )-:

To start, reproduce the problem and then trigger a sysdiagnose log. Set that aside in case you end up filing a bug about this issue.

Next, try creating a new, dummy user account on your Mac. Does the problem persist there?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Playground starts slowly or never runs
 
 
Q