You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Package.swift file generated when using the moduleType: .swiftPackageManager and testMocks: .swiftPackage options only defines a target for the test mocks, but does not define a product which uses the defined target. This means that there is no way to consume the mock target outside of the generated package. A work around is to manually modify the generated file, but such changes will be overridden on subsequent file generations.
Versions
Please fill in the versions you're currently using:
apollo-ios SDK version: 1.0.3
Xcode version: 14.0.1
Swift version: 5.7
Package manager: SPM
Steps to reproduce
Generate code using moduleType: .swiftPackageManager and testMocks: .swiftPackage options
Bug report
The
Package.swift
file generated when using themoduleType: .swiftPackageManager
andtestMocks: .swiftPackage
options only defines a target for the test mocks, but does not define a product which uses the defined target. This means that there is no way to consume the mock target outside of the generated package. A work around is to manually modify the generated file, but such changes will be overridden on subsequent file generations.Versions
Please fill in the versions you're currently using:
apollo-ios
SDK version: 1.0.3Steps to reproduce
moduleType: .swiftPackageManager
andtestMocks: .swiftPackage
optionsFurther details
Sample
Package.swift
Expected
Package.swift
The text was updated successfully, but these errors were encountered: