Tips for getting live preview working in Xcode 12.5 #581
Replies: 4 comments 6 replies
-
Seems like a bug in Xcode 12.5 😕. Some of our previews work in isowords and others do not. No idea why. |
Beta Was this translation helpful? Give feedback.
-
Yes I just ended up adding the UI features as dependencies to project to get them working: |
Beta Was this translation helpful? Give feedback.
-
Submitted feedback |
Beta Was this translation helpful? Give feedback.
-
I too have difficulties with Previews. One thing that is working better for me is to open You can't launch an app nor have local overrides for your dependencies like this, but it seems that Xcode is less confused, and it's working quite reliably for me as long as the current scheme is building the file I'm previewing. This is not optimal though, but it seems simpler than trying to delete build product, or derived data, or restarting Xcode without success. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have an app structured like isowords and I had a lot of trouble getting SwiftUI previews working. The best workaround was to add all packages that contain views (not just AppFeature) as dependencies for the app target in Xcode.
It appears that the SwiftUI previews only work for the App project and it's direct dependencies.
I have lodged FB9118422 with Apple where I kept on getting
failedToGenerateThunkInfo
error on previews.Regards,
Suraj
Beta Was this translation helpful? Give feedback.
All reactions