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

后端 未结 4 706
孤城傲影
孤城傲影 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:28

    Instead @main, please replace @UIApplicationMain. I've attached screenshots. https://prnt.sc/vimvwn

提交回复
热议问题