A demo of a fix for a XCPreviewAgent crash due to resource dependencies accross modules.
It specificially fixes crashes like this:
unable to find bundle named <PACKAGE>_<TARGET>
----------------------------------------
CrashReportError: `fatalError` in resource_bundle_accessor.swift
XCPreviewAgent crashed due to fatalError in resource_bundle_accessor.swift at line 27.
unable to find bundle named <PACKAGE>_<TARGET>
Process: XCPreviewAgent
See the crash
To see the crash in action: git switch crash. The crash branch demonstrates the implementation as it should work with XCPreviews. Just try to open ModulUI‘s preview.
Swiftui Xcode previews module resources fix
A demo of a fix for a XCPreviewAgent crash due to resource dependencies accross modules.
It specificially fixes crashes like this:
See the crash
To see the crash in action:
git switch crash
.The
crash
branch demonstrates the implementation as it should work with XCPreviews.Just try to open
ModulUI
‘s preview.Resouces