Build Information
Failed to build MapboxDirections, reference v2.14.0 (651232
), with Swift 6.2 (beta) for Wasm on 21 Jun 2025 16:42:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mapbox/mapbox-directions-swift.git
Reference: v2.14.0
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/mapbox/mapbox-directions-swift
* tag v2.14.0 -> FETCH_HEAD
HEAD is now at 6512320 Update version 2.14.0 (#828)
Cloned https://github.com/mapbox/mapbox-directions-swift.git
Revision (git rev-parse @):
6512320ee7f0091a4c55abe2bc6414f078da88c8
SUCCESS checkout https://github.com/mapbox/mapbox-directions-swift.git at v2.14.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/mapbox/mapbox-directions-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/mapbox/turf-swift.git
Fetching https://github.com/raphaelmor/Polyline.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/AliSoftware/OHHTTPStubs
[1/888] Fetching polyline
[889/8788] Fetching polyline, ohhttpstubs
[2627/14870] Fetching polyline, ohhttpstubs, turf-swift
[13533/30250] Fetching polyline, ohhttpstubs, turf-swift, swift-argument-parser
Fetched https://github.com/raphaelmor/Polyline.git from cache (1.28s)
Fetched https://github.com/AliSoftware/OHHTTPStubs from cache (1.29s)
Fetched https://github.com/mapbox/turf-swift.git from cache (1.30s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.30s)
Computing version for https://github.com/AliSoftware/OHHTTPStubs
Computed https://github.com/AliSoftware/OHHTTPStubs at 9.1.0 (2.32s)
Computing version for https://github.com/mapbox/turf-swift.git
Computed https://github.com/mapbox/turf-swift.git at 2.8.0 (0.74s)
Computing version for https://github.com/raphaelmor/Polyline.git
Computed https://github.com/raphaelmor/Polyline.git at 5.1.0 (0.47s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.61s)
Creating working copy for https://github.com/mapbox/turf-swift.git
Working copy of https://github.com/mapbox/turf-swift.git resolved at 2.8.0
Creating working copy for https://github.com/raphaelmor/Polyline.git
Working copy of https://github.com/raphaelmor/Polyline.git resolved at 5.1.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
Creating working copy for https://github.com/AliSoftware/OHHTTPStubs
Working copy of https://github.com/AliSoftware/OHHTTPStubs resolved at 9.1.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/16] Write sources
[7/16] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/43] Emitting module Turf
/host/spi-builder-workspace/.build/checkouts/turf-swift/Sources/Turf/BoundingBox.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | #if !os(Linux)
3 | import CoreLocation
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/46] Emitting module Polyline
/host/spi-builder-workspace/.build/checkouts/Polyline/Sources/Polyline/CoreLocation.swift:23:8: error: no such module 'Foundation'
21 | // SOFTWARE.
22 |
23 | import Foundation
| `- error: no such module 'Foundation'
24 | #if canImport(CoreLocation)
25 | import CoreLocation
[11/46] Compiling Polyline CoreLocation.swift
/host/spi-builder-workspace/.build/checkouts/Polyline/Sources/Polyline/CoreLocation.swift:23:8: error: no such module 'Foundation'
21 | // SOFTWARE.
22 |
23 | import Foundation
| `- error: no such module 'Foundation'
24 | #if canImport(CoreLocation)
25 | import CoreLocation
[12/46] Compiling Polyline Polyline.swift
/host/spi-builder-workspace/.build/checkouts/Polyline/Sources/Polyline/CoreLocation.swift:23:8: error: no such module 'Foundation'
21 | // SOFTWARE.
22 |
23 | import Foundation
| `- error: no such module 'Foundation'
24 | #if canImport(CoreLocation)
25 | import CoreLocation
[13/46] Compiling Turf Polygon.swift
/host/spi-builder-workspace/.build/checkouts/turf-swift/Sources/Turf/BoundingBox.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | #if !os(Linux)
3 | import CoreLocation
[14/46] Compiling Turf Geometry.swift
/host/spi-builder-workspace/.build/checkouts/turf-swift/Sources/Turf/BoundingBox.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | #if !os(Linux)
3 | import CoreLocation
[15/46] Compiling Turf JSON.swift
/host/spi-builder-workspace/.build/checkouts/turf-swift/Sources/Turf/BoundingBox.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | #if !os(Linux)
3 | import CoreLocation
[16/46] Compiling Turf Consumer.swift
/host/spi-builder-workspace/.build/checkouts/turf-swift/Sources/Turf/BoundingBox.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | #if !os(Linux)
3 | import CoreLocation
[17/46] Compiling Turf CoreLocation.swift
/host/spi-builder-workspace/.build/checkouts/turf-swift/Sources/Turf/BoundingBox.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | #if !os(Linux)
3 | import CoreLocation
[18/46] Compiling Turf Feature.swift
/host/spi-builder-workspace/.build/checkouts/turf-swift/Sources/Turf/BoundingBox.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | #if !os(Linux)
3 | import CoreLocation
[19/46] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.2 wasm