The testTarget is accessing Colour from generated code and thus crashing. The below code results in fatalError
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, *)
public private(set) lazy var color: Color = {
guard let color = Color(asset: self) else {
fatalError("Unable to load color asset named \(name).")
}
return color
}()
The swiftgen.yml file has bundle as Bundle.module. How to fix this issue ? Below is the Package.swift content:
The
testTarget
is accessing Colour from generated code and thus crashing. The below code results infatalError
The
swiftgen.yml
file has bundle asBundle.module
. How to fix this issue ? Below is thePackage.swift
content: