Skip to content

Commit 7dc8cb8

Browse files
committed
Update to swift 6
1 parent 608a29b commit 7dc8cb8

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.5
1+
// swift-tools-version:6.0
22

33
import PackageDescription
44

Sources/Isa.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import Foundation
1010

11-
public enum Isa: String, CaseIterable, CustomStringConvertible {
11+
public enum Isa: String, CaseIterable, CustomStringConvertible, Sendable {
1212

1313
case project = "PBXProject"
1414
case containerItemProxy = "PBXContainerItemProxy"

Sources/PropertyList.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ open class PropertyList {
8787
}
8888

8989
guard let dict = obj as? PBXObject.Fields else {
90-
throw XcodeProjError.invalidData(object: obj)
90+
throw XcodeProjError.invalidData(object: AnySendable(value: obj))
9191
}
9292

9393
try self.init(dict: dict, format: format)

Sources/XcodeProjError.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@
88

99
import Foundation
1010

11+
public struct AnySendable: @unchecked Sendable {
12+
let value: Any?
13+
}
14+
1115
public enum XcodeProjError: Error {
1216

1317
// Data not a dictionary
14-
case invalidData(object: Any)
18+
case invalidData(object: AnySendable)
1519

1620
// Missing field
1721
case fieldMissing(key: String)

0 commit comments

Comments
 (0)