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

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

    First select the Xcode using following command

    sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

    Then run

    sudo xcodebuild -license

    Hope it is helpful

提交回复
热议问题