I use XcodeProj in a Swift command line tool to export information about project dependencies. For example, outputting the package dependencies of a target using XcodeProj's PBXTarget.packageProductDependencies
property.
Release 8.23.0
contains an API-breaking change. The return type of the packageProductDependencies
was made optional:
public var packageProductDependencies: [XCSwiftPackageProductDependency]?
Which means a function like this:
func foo(for target: PBXTarget) -> [Foo] {
return target.packageProductDependencies.map { ... }
}
Must now also be made optional: func foo(for target: PBXTarget) -> [Foo]?
or the function must be updated to guard against nil
:
func foo(for target: PBXTarget) -> [Foo] {
guard let packageProductDependencies = target.packageProductDependencies else {
return []
}
return target.packageProductDependencies.map { ... }
}
To adhere to semver, this should have been a major release. Rollback or re-release as 9.0.0
?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too