IOS 13 Combine Framework - @Published not working (“Unknown attribute 'Published'”)
问题 I watched the WWDC 2019 session "Combine in Practice" (https://developer.apple.com/videos/play/wwdc2019/721/). In the video they used the following syntax to create a publisher: @Published var someName: String = "" They did this so that someName becomes a publisher. However, Xcode doesn't like this syntax and gives me an error: Unknown attribute 'Published I have no idea why. I'm using the Xcode 11 beta on macOS Catalina. Any ideas? 回答1: From the Xcode 11 Beta Release Notes (emphasis added):