IOS Tutorial: "Active scheme does not build this file" bug

I am doing the "Creating a card view" part of the ios development tutorials and for some reason I have this weird bug with previewing files.

When I click on any swiftUI files I have the error "Active scheme does not build this file", but then when I physically move the file to a different folder, or just somewhere else in general, the preview screen will reload and then display the preview with live updates.

This will then go away when I click on a different file and come back, but can be fixed by physically moving the file around again. This issue is blowing my mind as I've spent a couple hours just trying to add a new scheme which still does not work.

I would be so grateful for any answers

IOS Tutorial: "Active scheme does not build this file" bug
 
 
Q