The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OktaClient, reference master (6c8c3c), with Swift 6.2 for Wasm on 23 Apr 2026 01:22:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/okta/okta-mobile-swift.git
Reference: master
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/okta/okta-mobile-swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 6c8c3c4 Merge pull request #275 from okta/release-2.1.5
Cloned https://github.com/okta/okta-mobile-swift.git
Revision (git rev-parse @):
6c8c3c42179642ac19c8428df5341d2c7b8691eb
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/okta/okta-mobile-swift.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/okta/okta-mobile-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2277] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.40s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (2.65s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3674] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.48s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.98s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/21] Write sources
[5/21] Copying AuthFoundation.strings
[5/21] Copying OktaDirectAuth.strings
[5/21] Copying Info.plist
[5/21] Copying PrivacyInfo.xcprivacy
[5/21] Copying Info.plist
[5/21] Copying PrivacyInfo.xcprivacy
[5/21] Copying Info.plist
[5/21] Write sources
[5/21] Copying OktaIdx.strings
[11/21] Write sources
[19/21] Copying PrivacyInfo.xcprivacy
[20/21] Write swift-version-24593BA9C3E375BF.txt
[22/29] Compiling CommonSupport BackgroundTaskWrapper.swift
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
[23/29] Compiling CommonSupport Lock.swift
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
[24/29] Compiling CommonSupport LockedValue.swift
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
[25/29] Compiling CommonSupport WeakCollection.swift
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
[26/29] Compiling CommonSupport CoalescedResult.swift
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/CommonSupport/CoalescedResult.swift:45:25: error: cannot find 'DispatchSemaphore' in scope
 43 |     /// Indicates if the asynchronous operation is being performed.
 44 |     nonisolated public var isActive: Bool {
 45 |         let semaphore = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
 46 |         nonisolated(unsafe) var result: Bool = false
 47 |
/host/spi-builder-workspace/Sources/CommonSupport/CoalescedResult.swift:59:25: error: cannot find 'DispatchSemaphore' in scope
 57 |     /// Stores the previously-fetched value, if one has been fetched and its response was successful.
 58 |     nonisolated public var value: T? {
 59 |         let semaphore = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
 60 |         nonisolated(unsafe) var result: T?
 61 |         Task.detached(priority: Task.currentPriority) {
[27/29] Compiling CommonSupport CopyOnWrite.swift
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
[28/29] Compiling CommonSupport ExpressionUtilities.swift
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/CommonSupport/ExpressionUtilities.swift:108:17: error: cannot find 'DispatchGroup' in scope
106 | @_documentation(visibility: private)
107 | public func withIsolationSyncThrowing<T: Sendable>(priority: TaskPriority? = nil, @_inheritActorContext _ block: @Sendable @escaping () async throws -> T) throws -> T {
108 |     let group = DispatchGroup()
    |                 `- error: cannot find 'DispatchGroup' in scope
109 |     nonisolated(unsafe) var result: Result<T, any Error>?
110 |
/host/spi-builder-workspace/Sources/CommonSupport/ExpressionUtilities.swift:147:17: error: cannot find 'DispatchGroup' in scope
145 |                                            @_inheritActorContext _ block: @Sendable @escaping () async -> T?) -> T?
146 | {
147 |     let group = DispatchGroup()
    |                 `- error: cannot find 'DispatchGroup' in scope
148 |     nonisolated(unsafe) var result: T?
149 |
/host/spi-builder-workspace/Sources/CommonSupport/ExpressionUtilities.swift:162:12: error: cannot find 'Thread' in scope
160 | extension MainActor {
161 |     public static func nonisolatedUnsafe<T: Sendable>(_ block: @MainActor () -> T) -> T {
162 |         if Thread.isMainThread {
    |            `- error: cannot find 'Thread' in scope
163 |             return MainActor.assumeIsolated { block() }
164 |         } else {
/host/spi-builder-workspace/Sources/CommonSupport/ExpressionUtilities.swift:165:20: error: cannot find 'DispatchQueue' in scope
163 |             return MainActor.assumeIsolated { block() }
164 |         } else {
165 |             return DispatchQueue.main.sync {
    |                    `- error: cannot find 'DispatchQueue' in scope
166 |                 #if swift(<6.0)
167 |                 return MainActor.assumeIsolated { block() }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/29] Emitting module CommonSupport
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/CommonSupport/ExpressionUtilities.swift:108:17: error: cannot find 'DispatchGroup' in scope
106 | @_documentation(visibility: private)
107 | public func withIsolationSyncThrowing<T: Sendable>(priority: TaskPriority? = nil, @_inheritActorContext _ block: @Sendable @escaping () async throws -> T) throws -> T {
108 |     let group = DispatchGroup()
    |                 `- error: cannot find 'DispatchGroup' in scope
109 |     nonisolated(unsafe) var result: Result<T, any Error>?
110 |
/host/spi-builder-workspace/Sources/CommonSupport/ExpressionUtilities.swift:147:17: error: cannot find 'DispatchGroup' in scope
145 |                                            @_inheritActorContext _ block: @Sendable @escaping () async -> T?) -> T?
146 | {
147 |     let group = DispatchGroup()
    |                 `- error: cannot find 'DispatchGroup' in scope
148 |     nonisolated(unsafe) var result: T?
149 |
/host/spi-builder-workspace/Sources/CommonSupport/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
BUILD FAILURE 6.2 wasm