I'm using SwiftUI and Xcode 12.2 (iOS 14) for a project and building a launch screen using Interface Builder. It works fine, but whenever the launch screen includes a reference to any image file (for the contents of an Image View), the launch screen no longer works at all—instead a black screen appears. Without any images, the launch screen appears fine.
I see that this problem has been reported on and off in recent years, and the fixes include:
- Move the images out of the asset catalog and/or
- Delete derived data, delete app from simulator/device, clean build folder.
I've tried both of these with no success. Neither in Simulator nor on physical device. Any thoughts?