Indeed. This happens frequently to me and this suggestion fixes it when in the same project. No such luck with a Swift Package I'm afraid.
It's so strange because when I check the build directory I can see the file it's asking for!
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: