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())
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())