Xcode 11 beta preview not showing (building)

I am following the SwiftUI Tutorial from developer.apple.com site and when I try to preview some files that I created in th project it shows me an error message "Failed to build LandmarkList.swift" followed by an info icon saying "Compiling failed: no type named "LandmarkList_Previews" in module Landmarks". When I hit Try again button it keeps not showing and just giving the same error message.


I have already:

- deleted the Xcode 10 version that I had installed.

-closed and openned Xcode 11 beta


Im running on MacOS Catalina Beta version 10.15.


Somebody please

Same man it won't load my preview and my Mac is the exact same as urs
This problem is still occurring for me:

Code Block
NoBuildableEntriesError: active scheme does not build this file
Select a scheme that builds a target which contains the current file, or add this file to a target that is built by the current scheme.

I have macOS Big Sur (11.4) What helped me is related to the fact I copied my project from another Mac. I have quit Xcode, then right clicked the project folder in Finder > Get Info > Unlock padlock in the bottom, right corner of the window that opened, I expanded Sharing & Permission section > selected my username which says Read & Write > Apply permissions. This effectively gives me / fixes full access right to the folder and fixes the problem.

Xcode 11 beta preview not showing (building)
 
 
Q