Skip to content

Commit

Permalink
Update XcodeProj, fix compatibility issue (#32)
Browse files Browse the repository at this point in the history
* Update XcodeProj, fix compatibility issue

* Fix compilation on older Xcode

* Use Swift 5.10.1 on Linux

---------

Co-authored-by: Michael Gerasymenko <[email protected]>
  • Loading branch information
mikeger and Michael Gerasymenko authored Oct 1, 2024
1 parent bf995f5 commit a441576
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: swift-actions/setup-swift@v2
with:
swift-version: "5.10.1"
- name: Get swift version
run: swift --version # Swift 5.1.0
- name: Prepare Git
run: git config --global user.email "[email protected]" && git config --global user.name "Test User"
- name: Run tests
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/tuist/XcodeProj.git",
"state" : {
"revision" : "313aaf1ad612135b7b0ccf731c86b5c07bf149b5",
"version" : "8.20.0"
"revision" : "babd2491ea34777bec9d33381a60cd782559b4b3",
"version" : "8.24.1"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ let package = Package(
],
products: products,
dependencies: [
.package(url: "https://github.com/tuist/XcodeProj.git", .upToNextMajor(from: "8.20.0")),
.package(url: "https://github.com/tuist/XcodeProj.git", .upToNextMajor(from: "8.24.1")),
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMajor(from: "1.2.0")),
.package(url: "https://github.com/kylef/PathKit.git", .upToNextMinor(from: "1.0.0")),
.package(url: "https://github.com/onevcat/Rainbow", .upToNextMajor(from: "4.0.0")),
Expand Down
6 changes: 6 additions & 0 deletions Plugins/SelectiveTestingPlugin/SelectiveTestingPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ struct SelectiveTestingPlugin: CommandPlugin {
}
#endif

#if compiler(>=6)
extension String: @retroactive LocalizedError {
public var errorDescription: String? { return self }
}
#else
extension String: LocalizedError {
public var errorDescription: String? { return self }
}
#endif
2 changes: 1 addition & 1 deletion Sources/DependencyCalculator/DependencyGraph.swift
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ extension WorkspaceInfo {
}

// Package dependencies
for packageDependency in target.packageProductDependencies {
for packageDependency in (target.packageProductDependencies ?? []) {
let package = packageDependency.productName
guard let packageMetadata = packagesByName[package] else {
Logger.warning("Package \(package) not found")
Expand Down

0 comments on commit a441576

Please sign in to comment.