diff --git a/Pod/Native/NativeRunner.swift b/Pod/Native/NativeRunner.swift index cb7582b..4376285 100644 --- a/Pod/Native/NativeRunner.swift +++ b/Pod/Native/NativeRunner.swift @@ -15,7 +15,11 @@ open class NativeRunner { public class func runScenario(featureFile: String, scenario: String?, testCase: XCTestCase) { testCase.state.loadAllStepsIfNeeded() - let path = Bundle(for: type(of: testCase)).resourceURL?.appendingPathComponent(featureFile) + var bundle = Bundle(for: type(of: testCase)) + #if SWIFT_PACKAGE + bundle = Bundle.module + #endif + let path = bundle.resourceURL?.appendingPathComponent(featureFile) let featureFilePath = requireNotNil(path, "Path could not be built for feature file: \(featureFile)") let features = loadFeatures(path: featureFilePath)