Closed calvincestari closed 6 months ago
It looks like Xcode 15.3 and swift-tools-version: 5.10 brings with it a new version of the Package.resolved file. Below is an example from a test project:
swift-tools-version: 5.10
{ "originHash" : "438020303660f915142c6f2f9052482de7f6a2f2b84a04cffea17e3bd09b9e12", "pins" : [ { "identity" : "apollo-ios", "kind" : "remoteSourceControl", "location" : "https://github.com/apollographql/apollo-ios", "state" : { "revision" : "72aaf039a417a2e3c98c490bb1c43a025758556e", "version" : "1.9.2" } }, { "identity" : "sqlite.swift", "kind" : "remoteSourceControl", "location" : "https://github.com/stephencelis/SQLite.swift.git", "state" : { "revision" : "e78ae0220e17525a15ac68c697a155eb7a672a8e", "version" : "0.15.0" } } ], "version" : 3 }
This results in being unable to do code generation with Apollo iOS because we throw an error for unknown versions:
Error: Package.resolve file version unsupported! Please create an issue at: https://github.com/apollographql/apollo-ios
swift-tools-version
5.10
5.9
Bug
It looks like Xcode 15.3 and
swift-tools-version: 5.10
brings with it a new version of the Package.resolved file. Below is an example from a test project:This results in being unable to do code generation with Apollo iOS because we throw an error for unknown versions:
Workaround
swift-tools-version
from5.10
to5.9
.