I downloaded the example playground using "Download Playground" from A Swift Tour — The Swift Programming Language (Swift 5.3) (from docs.swift.org - there was no tag for this Forum that I could find to reference Docs or swift.org)
On my Mac (macOS 11.0 beta 2, Xcode 12 beta 2) none of the chapters will run in the downloaded GuidedTour.playground. Each chapter compiles and builds, but then when trying to run it never gets past:
<<Spinner>> Running Simple Values
and no results are printed.
If I copy sections into a "Blank" .playground created using File > New > Playground... in Xcode, things work as expected.
This seems to not work "out of the box", even though the page where it was downloaded from has this
In the Report navigator in the "broken" playground, the Build entry for each (successful) build had this:
Workspace GuidedTour | Scheme GuidedTour (Playground) | Destination iPad Pro (9.7 inch)
and when building a package Destination iPad Pro (9.7 inch) | SDK Simulator - iOS 14.0
In the Report navigator in the "working" from-"Blank" playground, the Build entry for each (successful) build had:
Destination My Mac
and for the Package Destination My Mac | SDK macOS 10.16
which would seem to be a big hint.
But
On my Mac (macOS 11.0 beta 2, Xcode 12 beta 2) none of the chapters will run in the downloaded GuidedTour.playground. Each chapter compiles and builds, but then when trying to run it never gets past:
<<Spinner>> Running Simple Values
and no results are printed.
If I copy sections into a "Blank" .playground created using File > New > Playground... in Xcode, things work as expected.
This seems to not work "out of the box", even though the page where it was downloaded from has this
NOTE For the best experience, open this chapter as a playground in Xcode.
Debugging attempt
broken version
In the Report navigator in the "broken" playground, the Build entry for each (successful) build had this:
Workspace GuidedTour | Scheme GuidedTour (Playground) | Destination iPad Pro (9.7 inch)
and when building a package Destination iPad Pro (9.7 inch) | SDK Simulator - iOS 14.0
working version
In the Report navigator in the "working" from-"Blank" playground, the Build entry for each (successful) build had:
Destination My Mac
and for the Package Destination My Mac | SDK macOS 10.16
which would seem to be a big hint.
But
I Do not know why the downloaded playground shows up with that non-Mac target destination
I do not know how to change this Destination
I do not know how to get an iPad simulator to appear alongside the playground, if that is what is intended
on Xcode 12 beta 3 this produces output now (where Xcode 12 beta 2 did not)
Only got it working after downloading on macOS, opening in macOS version of Swift Playgrounds, then using iCloud to sync the playground to iPad. Only then could I open/run the playground on iPad. And it runs much faster on 2015 iPad Pro than on 2015 MacBook Pro in macOS Swift Playgrounds.
Xcode 12 b2 didn't work
Download using macOS Swift Playgrounds app
Use iCloud sync to run on iPad Swift Playgrounds
Only got it working after downloading on macOS, opening in macOS version of Swift Playgrounds, then using iCloud to sync the playground to iPad. Only then could I open/run the playground on iPad. And it runs much faster on 2015 iPad Pro than on 2015 MacBook Pro in macOS Swift Playgrounds.