I keep getting “Cannot preview in this file - active scheme does not build this file” errors frequently when starting a starter project for each chapter. Sometimes doing a clean then build fixes it, sometimes closing the project then reopening it fixes it.
I’m building for iPad Pro on iOS 14.0.
I’m using xcode 13.1 running under Monterey 12.0.1.
Preview is now working after closing xcode then re-opening it.
I thought Android Studio was flaky but this is a whole new level of flakiness.
I did iOS dev years ago and xcode was very stable and reliable then.