Cannot preview in this file - active scheme does not build this file : SwiftUI on Xcode 11 in CatalinaOS
问题 I opened Landmark App using SwiftUI on Xcode 11 in macOS Catalina(10.15) and while opening the Canvas Editor for .swift files containing SwiftUI is showing Cannot preview in this file - active scheme does not build this file Try Again , Diagonistics option or restarting Xcode not solving the problem. 回答1: Select the Scheme that has the current file to Preview 回答2: If this is a new project coming from a copied folder and inside an iCloud folder, just close Xcode and relaunch it. The sync was