Combine @Published could not be found - Xcode11 Beta 5(11M382q)
0
I am trying to run a simple project with the following:
@Published var currentPlacemark: CLPlacemark? = nil
- XCode11 Beta5(11M382q)
- iOS13(17A5556d)
Getting the following error: dyld: Symbol not found: _$s7Combine9PublishedV9PublisherCyx_GAadAM
Anyone else encountered this?
Code example:
import SwiftUI
import Combine
class MyFoo {
@Published var bar: String = ""
}
struct ContentView: View {
var body: some View {
Text("Hello World")
}
}
#if DEBUG
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
let foo = MyFoo()
foo.bar = "asas"
let barSink = foo.$bar
.sink() {
print("bar value: \($0)")
}
return ContentView()
}
}
#endif
I would note that in the simulator everything is working great.
Any idea??
iPhone XS