Xcode 11 Beta 3, build error “Unknown attribute 'State'”, “Use of undeclared type 'View'” etc

后端 未结 4 739
孤城傲影
孤城傲影 2020-12-21 04:43

I build an app with the 2nd beta of Xcode 11, using SwiftUI, and everything worked completely fine, but now, with the 3rd beta, the app isn\'t even build. I get errors like

4条回答
  •  难免孤独
    2020-12-21 05:24

    Got same issue on Xcode 11.2. Found out that the reason was that somewhere in same module I declared protocol State {}. This breaks compiler without any reasonable errors.

提交回复
热议问题