title: SwiftUI: Automatic Preview Updating Error "Failed to build ContentView.swift"
body: <p>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 <strong>Failed to build ContentView.swift. Failed to code sign ContentView.swift</strong>.</p>
  
  <p>I have just created the project without any modifications to the auto generated code. Even the code signing has also been set properly. Note I'm using the <strong>Free Apple Developer Account</strong>. Could this cause any problem?</p>
  
  <p>Following is the code from ContentView.swift file:</p>
  
  <pre class="lang-swift prettyprint-override"><code>import SwiftUI
  
  struct ContentView : View {
      var body: some View {
          Text("Hello World")
      }
  }
  
  #if DEBUG
  struct ContentView_Previews : PreviewProvider {
      static var previews: some View {
          ContentView()
      }
  }
  #endif
  </code></pre>