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

后端 未结 5 1260
渐次进展
渐次进展 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:47

    I had this problem too. I solved it by moving the file location of the file I was trying to preview. When the file was created it was down below the resources folder, so I moved it up and then preview worked.

提交回复
热议问题