Post not yet marked as solved
Post marked as unsolved with 10 replies, 1,793 views
Since upgrading to Xcode11/Catalina Macos Beta 7, programs that use ObservableObject and @ObservedObject crash with memory access error. The programs worked with previous betas and compile on beta 7. I created a simple macos test program to isolate the problem and only modified the Xcode generated ContentView.swift to be:import SwiftUIpublic class TestClass: ObservableObject { @Published public var str: String = "Goodbye"}struct ContentView: View { @ObservedObject public var testObject: TestClass var body: some View { Text(testObject.str) .frame(maxWidth: .infinity, maxHeight: .infinity) }}This also crashes with the same error. Anyone else seeing this problem? It seems a well used construct that would be creating problems for others.