The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build MapboxDirections, reference main (32bf19), with Swift 6.2 (beta) for Wasm on 21 Jun 2025 16:41:35 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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: 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/mapbox/mapbox-directions-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 32bf194 Merge pull request #831 from mapbox/NAVIOS-2098-codecov
Cloned https://github.com/mapbox/mapbox-directions-swift.git
Revision (git rev-parse @):
32bf194b10bb00958fd7e9eceba15038be4433ce
SUCCESS checkout https://github.com/mapbox/mapbox-directions-swift.git at main
========================================
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-2":/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/raphaelmor/Polyline.git
Fetching https://github.com/mapbox/turf-swift.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/AliSoftware/OHHTTPStubs
[1/888] Fetching polyline
[889/8788] Fetching polyline, ohhttpstubs
[1521/14870] Fetching polyline, ohhttpstubs, turf-swift
[13777/30250] Fetching polyline, ohhttpstubs, turf-swift, swift-argument-parser
Fetched https://github.com/mapbox/turf-swift.git from cache (0.88s)
Fetched https://github.com/raphaelmor/Polyline.git from cache (1.02s)
Fetched https://github.com/AliSoftware/OHHTTPStubs from cache (1.03s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.03s)
Computing version for https://github.com/AliSoftware/OHHTTPStubs
Computed https://github.com/AliSoftware/OHHTTPStubs at 9.1.0 (1.50s)
Computing version for https://github.com/mapbox/turf-swift.git
Computed https://github.com/mapbox/turf-swift.git at 2.8.0 (0.43s)
Computing version for https://github.com/raphaelmor/Polyline.git
Computed https://github.com/raphaelmor/Polyline.git at 5.1.0 (0.48s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.41s)
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/AliSoftware/OHHTTPStubs
Working copy of https://github.com/AliSoftware/OHHTTPStubs resolved at 9.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/raphaelmor/Polyline.git
Working copy of https://github.com/raphaelmor/Polyline.git resolved at 5.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 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
[10/43] 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
[11/43] 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/43] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.2 wasm