I\'m trying to use a resource file in unit tests and access it with Bundle.path, but it returns nil.
Bundle.path
This call in MyProjectTests.swift returns nil:
A made a simple solution that works for legacy swift and future swift:
ResourceHelper.projectRootURL(projectRef: #file, fileName: "temp.bundle/payload.json").path