Playground stuck on "Ready to Contine", not executing code

Since updating to Sequoia & Xcode 16, I cannot run any code in a playground. Even the simplest code -

import Cocoa

print("Hello, world")

does not run and hangs on "Ready to Continue MyPlaground". I've tried restarting, force quitting, deleting and reinstalling Xcode, killing 'com.apple.CoreSimulator.CoreSimulatorService' in the activity monitor.

Answered by Developer Tools Engineer in 805453022

The output of print statements in Playgrounds should appear in the console (View > Debug Area > Show Debug Area). If you're not seeing that, please file a bug and include a sysdiagnose so we can look into it further.

Ditto for iOS Playground. Xcode Version 16.0 (16A242d).

import UIKit

var greeting = "Hello, playground"

print("My greeting: \(greeting)")

The var greeting = ... does show something in the "results" panel (RHS). But the print(...) does not.

Accepted Answer

The output of print statements in Playgrounds should appear in the console (View > Debug Area > Show Debug Area). If you're not seeing that, please file a bug and include a sysdiagnose so we can look into it further.

This was exactly what I was missing. Thank you so much!!

Playground stuck on "Ready to Contine", not executing code
 
 
Q