The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build HName, reference main (c5029c), with Swift 6.0 for Linux on 4 Nov 2024 08:29:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hadycodes/HName.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/hadycodes/HName
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c5029cd Add cocoapod support
Cloned https://github.com/hadycodes/HName.git
Revision (git rev-parse @):
c5029cd5549f06ce96497264e00949a2bfcba6cd
SUCCESS checkout https://github.com/hadycodes/HName.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/hadycodes/HName.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling HName HName.swift
/host/spi-builder-workspace/Sources/HName/HName.swift:3:2: error: Objective-C interoperability is disabled
 1 | import Foundation
 2 |
 3 | @objc public class HName: NSObject, ExpressibleByStringLiteral, Codable {
   |  `- error: Objective-C interoperability is disabled
 4 |     public let name: String
 5 |     internal let personComponents: PersonNameComponents?
/host/spi-builder-workspace/Sources/HName/HName.swift:10:55: error: missing argument for parameter 'coder' in call
 8 |     required public init(stringLiteral value: String) {
 9 |         name = value
10 |         let formatter = PersonNameComponentsFormatter()
   |                                                       `- error: missing argument for parameter 'coder' in call
11 |         personComponents = formatter.personNameComponents(from: value)
12 |     }
Foundation.PersonNameComponentsFormatter:4:21: note: 'init(coder:)' declared here
 2 | open class PersonNameComponentsFormatter : Formatter, @unchecked Sendable {
 3 |     @available(*, unavailable, message: "Person name components formatting isn't available in swift-corelibs-foundation")
 4 |     required public init?(coder: NSCoder)
   |                     `- note: 'init(coder:)' declared here
 5 |     open var style: PersonNameComponentsFormatter.Style
 6 |     open var isPhonetic: Bool
[4/6] Compiling HName HName+Getters.swift
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:10:2: error: Objective-C interoperability is disabled
 8 | import Foundation
 9 |
10 | @objc public extension HName {
   |  `- error: Objective-C interoperability is disabled
11 |     @objc var firstName: String? {
12 |         return self.personComponents?.givenName
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:11:6: error: Objective-C interoperability is disabled
 9 |
10 | @objc public extension HName {
11 |     @objc var firstName: String? {
   |      `- error: Objective-C interoperability is disabled
12 |         return self.personComponents?.givenName
13 |     }
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:15:6: error: Objective-C interoperability is disabled
13 |     }
14 |
15 |     @objc var lastName: String? {
   |      `- error: Objective-C interoperability is disabled
16 |         return self.personComponents?.familyName
17 |     }
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:19:6: error: Objective-C interoperability is disabled
17 |     }
18 |
19 |     @objc var namePrefix: String? {
   |      `- error: Objective-C interoperability is disabled
20 |         return self.personComponents?.namePrefix
21 |     }
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:23:6: error: Objective-C interoperability is disabled
21 |     }
22 |
23 |     @objc var abbrivation: String? {
   |      `- error: Objective-C interoperability is disabled
24 |         return self.formatted(.abbreviated)
25 |     }
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:27:6: error: Objective-C interoperability is disabled
25 |     }
26 |
27 |     @objc var fullName: String? {
   |      `- error: Objective-C interoperability is disabled
28 |         guard let pc = personComponents else {
29 |             return nil
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:31:55: error: missing argument for parameter 'coder' in call
29 |             return nil
30 |         }
31 |         let formatter = PersonNameComponentsFormatter()
   |                                                       `- error: missing argument for parameter 'coder' in call
32 |         formatter.style = .default
33 |         return formatter.string(from: pc)
Foundation.PersonNameComponentsFormatter:4:21: note: 'init(coder:)' declared here
 2 | open class PersonNameComponentsFormatter : Formatter, @unchecked Sendable {
 3 |     @available(*, unavailable, message: "Person name components formatting isn't available in swift-corelibs-foundation")
 4 |     required public init?(coder: NSCoder)
   |                     `- note: 'init(coder:)' declared here
 5 |     open var style: PersonNameComponentsFormatter.Style
 6 |     open var isPhonetic: Bool
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:32:28: error: cannot infer contextual base in reference to member 'default'
30 |         }
31 |         let formatter = PersonNameComponentsFormatter()
32 |         formatter.style = .default
   |                            `- error: cannot infer contextual base in reference to member 'default'
33 |         return formatter.string(from: pc)
34 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module HName
/host/spi-builder-workspace/Sources/HName/HName+Formatters.swift:18:6: error: Objective-C interoperability is disabled
16 | }
17 | public extension HName {
18 |     @objc func formatted(_ style: NameStyle = .default) -> String? {
   |      `- error: Objective-C interoperability is disabled
19 |         guard let pc = personComponents else {
20 |             return nil
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:10:2: error: Objective-C interoperability is disabled
 8 | import Foundation
 9 |
10 | @objc public extension HName {
   |  `- error: Objective-C interoperability is disabled
11 |     @objc var firstName: String? {
12 |         return self.personComponents?.givenName
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:11:6: error: Objective-C interoperability is disabled
 9 |
10 | @objc public extension HName {
11 |     @objc var firstName: String? {
   |      `- error: Objective-C interoperability is disabled
12 |         return self.personComponents?.givenName
13 |     }
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:15:6: error: Objective-C interoperability is disabled
13 |     }
14 |
15 |     @objc var lastName: String? {
   |      `- error: Objective-C interoperability is disabled
16 |         return self.personComponents?.familyName
17 |     }
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:19:6: error: Objective-C interoperability is disabled
17 |     }
18 |
19 |     @objc var namePrefix: String? {
   |      `- error: Objective-C interoperability is disabled
20 |         return self.personComponents?.namePrefix
21 |     }
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:23:6: error: Objective-C interoperability is disabled
21 |     }
22 |
23 |     @objc var abbrivation: String? {
   |      `- error: Objective-C interoperability is disabled
24 |         return self.formatted(.abbreviated)
25 |     }
/host/spi-builder-workspace/Sources/HName/HName+Getters.swift:27:6: error: Objective-C interoperability is disabled
25 |     }
26 |
27 |     @objc var fullName: String? {
   |      `- error: Objective-C interoperability is disabled
28 |         guard let pc = personComponents else {
29 |             return nil
/host/spi-builder-workspace/Sources/HName/HName.swift:3:2: error: Objective-C interoperability is disabled
 1 | import Foundation
 2 |
 3 | @objc public class HName: NSObject, ExpressibleByStringLiteral, Codable {
   |  `- error: Objective-C interoperability is disabled
 4 |     public let name: String
 5 |     internal let personComponents: PersonNameComponents?
[6/6] Compiling HName HName+Formatters.swift
/host/spi-builder-workspace/Sources/HName/HName+Formatters.swift:18:6: error: Objective-C interoperability is disabled
16 | }
17 | public extension HName {
18 |     @objc func formatted(_ style: NameStyle = .default) -> String? {
   |      `- error: Objective-C interoperability is disabled
19 |         guard let pc = personComponents else {
20 |             return nil
/host/spi-builder-workspace/Sources/HName/HName+Formatters.swift:22:55: error: missing argument for parameter 'coder' in call
20 |             return nil
21 |         }
22 |         let formatter = PersonNameComponentsFormatter()
   |                                                       `- error: missing argument for parameter 'coder' in call
23 |         formatter.style = PersonNameComponentsFormatter.Style(rawValue: style.rawValue) ?? .default
24 |         return formatter.string(from: pc)
Foundation.PersonNameComponentsFormatter:4:21: note: 'init(coder:)' declared here
 2 | open class PersonNameComponentsFormatter : Formatter, @unchecked Sendable {
 3 |     @available(*, unavailable, message: "Person name components formatting isn't available in swift-corelibs-foundation")
 4 |     required public init?(coder: NSCoder)
   |                     `- note: 'init(coder:)' declared here
 5 |     open var style: PersonNameComponentsFormatter.Style
 6 |     open var isPhonetic: Bool
BUILD FAILURE 6.0 linux