Post

Replies

Boosts

Views

Activity

Reply to Xcode Previews doesn't work when used in a package that imports other packages.
I too am facing this issue, interestingly it's happening on my AnnouncementModule package, not necessarily on a preview of a package, of a package. I've been doing some serious DEEP diving into this issue, and if I manage to find a solution, I'll share back here. My gut says this isn't an "Apple" issue, but more of a "Dev" issue and not understanding some really obscure technical thing. The image here shows how my dependency tree looks in a reproducible example. I am able to get previews working just fine for Design which is incredibly odd, given it's a dependency for AnnouncementModule.
Feb ’24
Reply to Xcode Previews doesn't work when used in a package that imports other packages.
How is it now 2023, XCode 14, and this is still a problem? This issue exists even on the beta (Which I kind of expect), but the fact that it's nearly 2 years later and we're still battling this issue? Also, for more context, you don't even need to be working on a package that has another dependency. I'm currently working on a package that has NO dependencies, and I still can't get previews to work without first building, then reloading the preview manually. Apple, how do you expect us to adopt SwiftUI if you can't even get the minimum working properly?
Mar ’23