SwiftUI: Automatic Preview Updating Error “Failed to build ContentView.swift”

后端 未结 5 1267
渐次进展
渐次进展 2020-12-30 23:16

I\'m trying to run the Automatic Preview in Xcode 11, however even though the project builds successfully, the automatic preview fails giving me the error Failed to

5条回答
  •  隐瞒了意图╮
    2020-12-30 23:36

    I had this problem as I was using // to comment beside my curly brackets to check I had them all in the right spot in my screen code. Xcode seems to cope with a few but once the screen gets too large and too many comments...... Now I comment on the line below and no problems!

提交回复
热议问题