Xcode Previews doesn't work when used in a package that imports other packages.

I keep getting a Xcode Previews error in Xcode 12 from a package that imports other packages. As soon as I remove the dependency I'm able to see the SwiftUI preview. I'm only able to use previews in packages that have no dependencies

The error I get is: "LoadingError: failed to load library at path...Library not loaded " then it point to the dependency that it could not load in the current package.

How can I access Xcode Previews from a package that depends on other packages?
Post not yet marked as solved Up vote post of iamlogiq Down vote post of iamlogiq
4.7k views

Accepted Reply

Hi,

Sorry to hear you are having problems. We have a received a feedback tracking this same issue, and we are actively investigating it. So far no known workaround.
  • We really need some updates on this. This is still broken.

Add a Comment

Replies

Does anyone know if this is still an issue with Xcode 14? It is on 13.3.1.

  • Its still an issue yes.

Add a Comment