Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

394
Views
Preview throwing error in SwiftUI: ConfigurationError: noPreviewInfos

I am using Xcode 12.4 in macOS Catalina 10.15.7 version. While preview SwiftUI code:

import SwiftUI
struct SwiftUINewView: View {
    var body: some View {
        Text("Ayush Gupta")
    }
}

struct SwiftUINewView_Previews: PreviewProvider {
    static var previews: some View {
        SwiftUINewView()
    }
}

I am getting error:

ConfigurationError: noPreviewInfos(arch: "x86_64", sdkRoot: "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk")

Is there any solution for this issue? Actually I am trying to integrate SwiftUI in old/existing UIKit project which is now supporting iOS 13.0 SDK.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I have a solution that is perfectly working fine for me.

Go to Editor -> Canvas -> Disable/Uncheck "Automatically Refresh Canvas"

enter image description here

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!