Posts

Post not yet marked as solved
1 Replies
1.3k Views
I am attempting to go through the SwiftUI tutorials on the Apple developer website - building the Landmarks app. With each starting point they provide a project file. When I open the project in XCode, everything works fine. However, when I add a new SwiftUI View to the project the preview (canvas) fails to load the default "Hello World" view. It states "Failed to build Test.swift". Restarting XCode and/or rebooting the machine does not resolve the issue.When I add a SwiftUI View to a project that I originally created on my Mac, the preview works fine. Is there an issue with the starting point project files provided in the tutorials?This issue is preventing me from being able to do the tutorials, so any advice would be greatly appreciated!
Posted Last updated
.