Unable to compile in playground in Xcode 12 but compiles normally in Playground APP

Newest Xcode 12(12A7209) updating from App Store, catalina 10.15.6

The following simple codes could not run normally in playground in Xcode. Get the following message:

error: Execution was interrupted, reason: signal SIGABRT.


import Foundation
import SwiftUI
import PlaygroundSupport

struct ContentView: View {

    let appleProducts: Array<String> = ["iPod", "iPhone", "Macbook", "Macbook Pro", "Mac Pro"]

    var body: some View {

        ScrollView(.horizontal, showsIndicators: false) {

            HStack {

                ForEach(0..<5) {

                    Text("\($0)")

                }

            }

        }

    }

}

PlaygroundPage.current.setLiveView(ContentView())
I played with it.

It seems that ForEach is causing problem, whatever content of ForEach.

Problem did not show in 12ß3
Tested on XCode 12.2ß.

Problem still exists.
Did you file a bug report ? I'll do it.

Reference : Sep 26, 2020 at 3:36 PM – FB8744799
Unable to compile in playground in Xcode 12 but compiles normally in Playground APP
 
 
Q