Xcode 26b7 & Xcode 16.4
I added this line to my Package deal.swift:
.package deal(url: "https://github.com/firebase/firebase-ios-sdk.git", .upToNextMajor(from: "12.2.0")),
And get this error:
Didn’t resolve dependencies Dependencies couldn’t be resolved as a result of no variations of ‘googledatatransport’ match the requirement 10.1.0..<11.0.0 and root is determined by ‘firebase-ios-sdk’ 12.2.0..<13.0.0.
‘firebase-ios-sdk’ >= 12.2.0 virtually is determined by ‘googledatatransport’ 10.1.0..<11.0.0 as a result of ‘firebase-ios-sdk’ 12.2.0 is determined by ‘googledatatransport’ 10.1.0..<11.0.0 and no variations of ‘firebase-ios-sdk’ match the requirement 12.2.1..<13.0.0.
Clearly, anticipating it to resolve the dependencies…
This happens once I merely add this dependency line in my package deal’s Package deal.swift file.
OR, if I am going into my App’s undertaking, and via Xcode do the File –> Add Package deal Dependencies…
I then put “https://github.com/firebase/firebase-ios-sdk” within the Search file. Dependency Rule of “As much as Subsequent Main Model” with 12.2.0 within the clean, then I chosen my Challenge within the Add To Challenge dropdown…after which “Add Package deal”. This provides me “Package deal Decision Failed” with this error:
Didn’t resolve dependencies Dependencies couldn’t be resolved
as a result of no variations of ‘googledatatransport’ match the requirement
10.1.0..<11.0.0 and root is determined by ‘firebase-ios-sdk’ 12.2.0..<13.0.0. ‘firebase-ios-sdk’ >= 12.2.0 virtually is determined by ‘googledatatransport’ 10.1.0..<11.0.0 as a result of no variations of
‘firebase-ios-sdk’ match the requirement 12.2.1..<13.0.0 and
‘firebase-ios-sdk’ 12.2.0 is determined by ‘googledatatransport’
10.1.0..<11.0.0. unexpectedly didn’t discover the brand new dependency within the package deal graph: sourceControl(id: firebase-ios-sdk, location:
SwiftPM.SPMPackageDependency.SourceControlLocation.distant(SwiftPM.SPMSourceControlURL(sourceControlURL:
https://github.com/firebase/firebase-ios-sdk)), requirement: 12.2.0 –
Subsequent Main)