This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 OAuth2 with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p2/OAuth2.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/p2/OAuth2
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3f6a18b Fix visionOS build, bump to 5.3.5
Submodule path 'SwiftKeychain': checked out 'a7fee4ba90cc77705f979ba14daa26fc39ef3c65'
Submodule 'SwiftKeychain' (https://github.com/p2/SwiftKeychain) registered for path 'SwiftKeychain'
Cloning into '/host/spi-builder-workspace/SwiftKeychain'...
Cloned https://github.com/p2/OAuth2.git
Revision (git rev-parse @):
3f6a18beb221636581e66d8d0cbec1a3948b4df3
SUCCESS checkout https://github.com/p2/OAuth2.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/p2/OAuth2.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" 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
Building for debugging...
[0/9] Write sources
[8/9] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/11] Emitting module SwiftKeychain
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:120:52: error: cannot find type 'OSStatus' in scope
118 |     public init() {}
119 |
120 |     internal func errorForStatusCode(_ statusCode: OSStatus) -> NSError {
    |                                                    `- error: cannot find type 'OSStatus' in scope
121 |
122 |         return NSError(domain: "swift.keychain.error", code: Int(statusCode), userInfo: nil)
[11/11] Compiling SwiftKeychain Keychain.swift
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:120:52: error: cannot find type 'OSStatus' in scope
118 |     public init() {}
119 |
120 |     internal func errorForStatusCode(_ statusCode: OSStatus) -> NSError {
    |                                                    `- error: cannot find type 'OSStatus' in scope
121 |
122 |         return NSError(domain: "swift.keychain.error", code: Int(statusCode), userInfo: nil)
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:35:23: error: cannot find 'kSecAttrAccessibleWhenUnlocked' in scope
 33 |     public var accessMode: String {
 34 |
 35 |         return String(kSecAttrAccessibleWhenUnlocked)
    |                       `- error: cannot find 'kSecAttrAccessibleWhenUnlocked' in scope
 36 |     }
 37 |
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:51:31: error: cannot find 'kSecValueData' in scope
 49 |         let archivedData = NSKeyedArchiver.archivedData(withRootObject: dataToStore)
 50 |
 51 |         itemAttributes[String(kSecValueData)] = archivedData
    |                               `- error: cannot find 'kSecValueData' in scope
 52 |
 53 |         if let group = accessGroup {
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:55:35: error: cannot find 'kSecAttrAccessGroup' in scope
 53 |         if let group = accessGroup {
 54 |
 55 |             itemAttributes[String(kSecAttrAccessGroup)] = group
    |                                   `- error: cannot find 'kSecAttrAccessGroup' in scope
 56 |         }
 57 |
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:63:49: error: cannot find 'kSecValueData' in scope
 61 |     internal func dataFromAttributes(_ attributes: [String: Any]) -> [String: Any]? {
 62 |
 63 |         guard let valueData = attributes[String(kSecValueData)] as? Data else { return nil }
    |                                                 `- error: cannot find 'kSecValueData' in scope
 64 |
 65 |         return NSKeyedUnarchiver.unarchiveObject(with: valueData) as? [String: Any] ?? nil
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:72:31: error: cannot find 'kSecReturnData' in scope
 70 |         var itemAttributes = attributes
 71 |
 72 |         itemAttributes[String(kSecReturnData)] = kCFBooleanTrue
    |                               `- error: cannot find 'kSecReturnData' in scope
 73 |         itemAttributes[String(kSecReturnAttributes)] = kCFBooleanTrue
 74 |
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:72:50: error: cannot find 'kCFBooleanTrue' in scope
 70 |         var itemAttributes = attributes
 71 |
 72 |         itemAttributes[String(kSecReturnData)] = kCFBooleanTrue
    |                                                  `- error: cannot find 'kCFBooleanTrue' in scope
 73 |         itemAttributes[String(kSecReturnAttributes)] = kCFBooleanTrue
 74 |
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:73:31: error: cannot find 'kSecReturnAttributes' in scope
 71 |
 72 |         itemAttributes[String(kSecReturnData)] = kCFBooleanTrue
 73 |         itemAttributes[String(kSecReturnAttributes)] = kCFBooleanTrue
    |                               `- error: cannot find 'kSecReturnAttributes' in scope
 74 |
 75 |         if let group = accessGroup {
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:73:56: error: cannot find 'kCFBooleanTrue' in scope
 71 |
 72 |         itemAttributes[String(kSecReturnData)] = kCFBooleanTrue
 73 |         itemAttributes[String(kSecReturnAttributes)] = kCFBooleanTrue
    |                                                        `- error: cannot find 'kCFBooleanTrue' in scope
 74 |
 75 |         if let group = accessGroup {
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:77:35: error: cannot find 'kSecAttrAccessGroup' in scope
 75 |         if let group = accessGroup {
 76 |
 77 |             itemAttributes[String(kSecAttrAccessGroup)] = group
    |                                   `- error: cannot find 'kSecAttrAccessGroup' in scope
 78 |         }
 79 |
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:103:27: error: cannot find 'kSecClass' in scope
101 |         var attributes = [String: Any]()
102 |
103 |         attributes[String(kSecClass)] = kSecClassGenericPassword
    |                           `- error: cannot find 'kSecClass' in scope
104 |         attributes[String(kSecAttrAccessible)] = accessMode
105 |         attributes[String(kSecAttrService)] = serviceName
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:103:41: error: cannot find 'kSecClassGenericPassword' in scope
101 |         var attributes = [String: Any]()
102 |
103 |         attributes[String(kSecClass)] = kSecClassGenericPassword
    |                                         `- error: cannot find 'kSecClassGenericPassword' in scope
104 |         attributes[String(kSecAttrAccessible)] = accessMode
105 |         attributes[String(kSecAttrService)] = serviceName
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:104:27: error: cannot find 'kSecAttrAccessible' in scope
102 |
103 |         attributes[String(kSecClass)] = kSecClassGenericPassword
104 |         attributes[String(kSecAttrAccessible)] = accessMode
    |                           `- error: cannot find 'kSecAttrAccessible' in scope
105 |         attributes[String(kSecAttrService)] = serviceName
106 |         attributes[String(kSecAttrAccount)] = accountName
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:105:27: error: cannot find 'kSecAttrService' in scope
103 |         attributes[String(kSecClass)] = kSecClassGenericPassword
104 |         attributes[String(kSecAttrAccessible)] = accessMode
105 |         attributes[String(kSecAttrService)] = serviceName
    |                           `- error: cannot find 'kSecAttrService' in scope
106 |         attributes[String(kSecAttrAccount)] = accountName
107 |
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:106:27: error: cannot find 'kSecAttrAccount' in scope
104 |         attributes[String(kSecAttrAccessible)] = accessMode
105 |         attributes[String(kSecAttrService)] = serviceName
106 |         attributes[String(kSecAttrAccount)] = accountName
    |                           `- error: cannot find 'kSecAttrAccount' in scope
107 |
108 |         return attributes
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:129:26: error: cannot find 'SecItemAdd' in scope
127 |     public func insertItemWithAttributes(_ attributes: [String: Any]) throws {
128 |
129 |         var statusCode = SecItemAdd(attributes as CFDictionary, nil)
    |                          `- error: cannot find 'SecItemAdd' in scope
130 |
131 |         if statusCode == errSecDuplicateItem {
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:129:51: error: cannot find type 'CFDictionary' in scope
127 |     public func insertItemWithAttributes(_ attributes: [String: Any]) throws {
128 |
129 |         var statusCode = SecItemAdd(attributes as CFDictionary, nil)
    |                                                   `- error: cannot find type 'CFDictionary' in scope
130 |
131 |         if statusCode == errSecDuplicateItem {
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:129:65: error: 'nil' requires a contextual type
127 |     public func insertItemWithAttributes(_ attributes: [String: Any]) throws {
128 |
129 |         var statusCode = SecItemAdd(attributes as CFDictionary, nil)
    |                                                                 `- error: 'nil' requires a contextual type
130 |
131 |         if statusCode == errSecDuplicateItem {
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:131:26: error: cannot find 'errSecDuplicateItem' in scope
129 |         var statusCode = SecItemAdd(attributes as CFDictionary, nil)
130 |
131 |         if statusCode == errSecDuplicateItem {
    |                          `- error: cannot find 'errSecDuplicateItem' in scope
132 |
133 |             SecItemDelete(attributes as CFDictionary)
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:133:13: error: cannot find 'SecItemDelete' in scope
131 |         if statusCode == errSecDuplicateItem {
132 |
133 |             SecItemDelete(attributes as CFDictionary)
    |             `- error: cannot find 'SecItemDelete' in scope
134 |             statusCode = SecItemAdd(attributes as CFDictionary, nil)
135 |         }
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:133:41: error: cannot find type 'CFDictionary' in scope
131 |         if statusCode == errSecDuplicateItem {
132 |
133 |             SecItemDelete(attributes as CFDictionary)
    |                                         `- error: cannot find type 'CFDictionary' in scope
134 |             statusCode = SecItemAdd(attributes as CFDictionary, nil)
135 |         }
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:134:26: error: cannot find 'SecItemAdd' in scope
132 |
133 |             SecItemDelete(attributes as CFDictionary)
134 |             statusCode = SecItemAdd(attributes as CFDictionary, nil)
    |                          `- error: cannot find 'SecItemAdd' in scope
135 |         }
136 |
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:134:51: error: cannot find type 'CFDictionary' in scope
132 |
133 |             SecItemDelete(attributes as CFDictionary)
134 |             statusCode = SecItemAdd(attributes as CFDictionary, nil)
    |                                                   `- error: cannot find type 'CFDictionary' in scope
135 |         }
136 |
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:134:65: error: 'nil' requires a contextual type
132 |
133 |             SecItemDelete(attributes as CFDictionary)
134 |             statusCode = SecItemAdd(attributes as CFDictionary, nil)
    |                                                                 `- error: 'nil' requires a contextual type
135 |         }
136 |
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:137:26: error: cannot find 'errSecSuccess' in scope
135 |         }
136 |
137 |         if statusCode != errSecSuccess {
    |                          `- error: cannot find 'errSecSuccess' in scope
138 |
139 |             throw errorForStatusCode(statusCode)
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:145:26: error: cannot find 'SecItemDelete' in scope
143 |     public func removeItemWithAttributes(_ attributes: [String: Any]) throws {
144 |
145 |         let statusCode = SecItemDelete(attributes as CFDictionary)
    |                          `- error: cannot find 'SecItemDelete' in scope
146 |
147 |         if statusCode != errSecSuccess {
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:145:54: error: cannot find type 'CFDictionary' in scope
143 |     public func removeItemWithAttributes(_ attributes: [String: Any]) throws {
144 |
145 |         let statusCode = SecItemDelete(attributes as CFDictionary)
    |                                                      `- error: cannot find type 'CFDictionary' in scope
146 |
147 |         if statusCode != errSecSuccess {
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:147:26: error: cannot find 'errSecSuccess' in scope
145 |         let statusCode = SecItemDelete(attributes as CFDictionary)
146 |
147 |         if statusCode != errSecSuccess {
    |                          `- error: cannot find 'errSecSuccess' in scope
148 |
149 |             throw errorForStatusCode(statusCode)
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:157:26: error: cannot find 'SecItemCopyMatching' in scope
155 |         var result: AnyObject?
156 |
157 |         let statusCode = SecItemCopyMatching(attributes as CFDictionary, &result)
    |                          `- error: cannot find 'SecItemCopyMatching' in scope
158 |
159 |         if statusCode != errSecSuccess {
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:157:60: error: cannot find type 'CFDictionary' in scope
155 |         var result: AnyObject?
156 |
157 |         let statusCode = SecItemCopyMatching(attributes as CFDictionary, &result)
    |                                                            `- error: cannot find type 'CFDictionary' in scope
158 |
159 |         if statusCode != errSecSuccess {
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:159:26: error: cannot find 'errSecSuccess' in scope
157 |         let statusCode = SecItemCopyMatching(attributes as CFDictionary, &result)
158 |
159 |         if statusCode != errSecSuccess {
    |                          `- error: cannot find 'errSecSuccess' in scope
160 |
161 |             throw errorForStatusCode(statusCode)
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.