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, reference main (3f6a18), with Swift 6.1 for Linux on 28 Apr 2025 10:49:25 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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.1
Building package at path:  $PWD
https://github.com/p2/OAuth2.git
https://github.com/p2/OAuth2.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OAuth2",
  "name" : "OAuth2",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "5.0"
    }
  ],
  "products" : [
    {
      "name" : "OAuth2",
      "targets" : [
        "OAuth2"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "tvOS",
      "module_type" : "SwiftTarget",
      "name" : "tvOS",
      "path" : "Sources/tvOS",
      "product_memberships" : [
        "OAuth2"
      ],
      "sources" : [
        "OAuth2Authorizer+tvOS.swift",
        "OAuth2CustomAuthorizer+tvOS.swift"
      ],
      "target_dependencies" : [
        "Base"
      ],
      "type" : "library"
    },
    {
      "c99name" : "macOS",
      "module_type" : "SwiftTarget",
      "name" : "macOS",
      "path" : "Sources/macOS",
      "product_memberships" : [
        "OAuth2"
      ],
      "sources" : [
        "OAuth2Authorizer+macOS.swift",
        "OAuth2CustomAuthorizer+macOS.swift",
        "OAuth2WebViewController+macOS.swift"
      ],
      "target_dependencies" : [
        "Base"
      ],
      "type" : "library"
    },
    {
      "c99name" : "iOS",
      "module_type" : "SwiftTarget",
      "name" : "iOS",
      "path" : "Sources/iOS",
      "product_memberships" : [
        "OAuth2"
      ],
      "sources" : [
        "OAuth2Authorizer+iOS.swift",
        "OAuth2CustomAuthorizer+iOS.swift",
        "OAuth2WebViewController+iOS.swift"
      ],
      "target_dependencies" : [
        "Base"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftKeychain",
      "module_type" : "SwiftTarget",
      "name" : "SwiftKeychain",
      "path" : "Sources/SwiftKeychain",
      "product_memberships" : [
        "OAuth2"
      ],
      "sources" : [
        "Keychain.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "OAuth2",
      "module_type" : "SwiftTarget",
      "name" : "OAuth2",
      "path" : "Sources/OAuth2",
      "product_memberships" : [
        "OAuth2"
      ],
      "sources" : [
        "OAuth2Module.swift"
      ],
      "target_dependencies" : [
        "Base",
        "Flows",
        "DataLoader"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Flows",
      "module_type" : "SwiftTarget",
      "name" : "Flows",
      "path" : "Sources/Flows",
      "product_memberships" : [
        "OAuth2"
      ],
      "sources" : [
        "OAuth2.swift",
        "OAuth2ClientCredentials.swift",
        "OAuth2ClientCredentialsReddit.swift",
        "OAuth2CodeGrant.swift",
        "OAuth2CodeGrantAzure.swift",
        "OAuth2CodeGrantBasicAuth.swift",
        "OAuth2CodeGrantFacebook.swift",
        "OAuth2CodeGrantLinkedIn.swift",
        "OAuth2CodeGrantNoTokenType.swift",
        "OAuth2DeviceGrant.swift",
        "OAuth2DynReg.swift",
        "OAuth2ImplicitGrant.swift",
        "OAuth2ImplicitGrantWithQueryParams.swift",
        "OAuth2PasswordGrant.swift"
      ],
      "target_dependencies" : [
        "macOS",
        "iOS",
        "tvOS"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FlowTests",
      "module_type" : "SwiftTarget",
      "name" : "FlowTests",
      "path" : "Tests/FlowTests",
      "sources" : [
        "OAuth2ClientCredentialsTests.swift",
        "OAuth2CodeGrantTests.swift",
        "OAuth2DeviceGrantTests.swift",
        "OAuth2DynRegTests.swift",
        "OAuth2ImplicitGrantTests.swift",
        "OAuth2PasswordGrantTests.swift",
        "OAuth2RefreshTokenTests.swift"
      ],
      "target_dependencies" : [
        "Flows"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DataLoader",
      "module_type" : "SwiftTarget",
      "name" : "DataLoader",
      "path" : "Sources/DataLoader",
      "product_memberships" : [
        "OAuth2"
      ],
      "sources" : [
        "OAuth2DataLoader.swift",
        "OAuth2DataLoaderSessionTaskDelegate.swift",
        "OAuth2DataRequest.swift"
      ],
      "target_dependencies" : [
        "Flows"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BaseTests",
      "module_type" : "SwiftTarget",
      "name" : "BaseTests",
      "path" : "Tests/BaseTests",
      "sources" : [
        "OAuth2AuthRequestTests.swift",
        "OAuth2Tests.swift"
      ],
      "target_dependencies" : [
        "Base",
        "Flows"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Base",
      "module_type" : "SwiftTarget",
      "name" : "Base",
      "path" : "Sources/Base",
      "product_memberships" : [
        "OAuth2"
      ],
      "sources" : [
        "OAuth2AuthConfig.swift",
        "OAuth2AuthRequest.swift",
        "OAuth2AuthorizerUI.swift",
        "OAuth2Base.swift",
        "OAuth2ClientConfig.swift",
        "OAuth2CustomAuthorizerUI.swift",
        "OAuth2DebugURLSessionDelegate.swift",
        "OAuth2Error.swift",
        "OAuth2KeychainAccount.swift",
        "OAuth2Logger.swift",
        "OAuth2RequestPerformer.swift",
        "OAuth2Requestable.swift",
        "OAuth2Response.swift",
        "OAuth2Securable.swift",
        "extensions.swift"
      ],
      "target_dependencies" : [
        "SwiftKeychain"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
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)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] 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)
[3/3] 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.1 linux