Swiftui Xcode previews module resources fix
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:
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
- https://forums.swift.org/t/xcode-previews-swiftpm-resources-xcpreviewagent-crashed/51680/8
- https://stackoverflow.com/questions/64540082/xcode-12-swiftui-preview-doesnt-work-on-swift-package-when-have-another-swift/65789298