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 (097137), with Swift 6.2 (beta) for Wasm on 9 Jul 2025 16:16:56 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 097137f Make encode methods public for open model classes (#837)
Cloned https://github.com/mapbox/mapbox-directions-swift.git
Revision (git rev-parse @):
097137f1380c06501951f4c9548f67d96e6bcf09
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/apple/swift-argument-parser
Fetching https://github.com/mapbox/turf-swift.git
Fetching https://github.com/AliSoftware/OHHTTPStubs
[1/894] Fetching polyline
[895/6976] Fetching polyline, turf-swift
[1139/14876] Fetching polyline, turf-swift, ohhttpstubs
[13661/30400] Fetching polyline, turf-swift, ohhttpstubs, swift-argument-parser
Fetched https://github.com/AliSoftware/OHHTTPStubs from cache (0.54s)
[5883/22500] Fetching polyline, turf-swift, swift-argument-parser
Fetched https://github.com/raphaelmor/Polyline.git from cache (1.08s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.09s)
Fetched https://github.com/mapbox/turf-swift.git from cache (1.09s)
Computing version for https://github.com/AliSoftware/OHHTTPStubs
Computed https://github.com/AliSoftware/OHHTTPStubs at 9.1.0 (2.21s)
Computing version for https://github.com/mapbox/turf-swift.git
Computed https://github.com/mapbox/turf-swift.git at 2.8.0 (0.71s)
Computing version for https://github.com/raphaelmor/Polyline.git
Computed https://github.com/raphaelmor/Polyline.git at 5.1.0 (0.78s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (0.56s)
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/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.6.1
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
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/17] Write sources
[8/17] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/44] 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/44] 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/44] Compiling Turf FeatureCollection.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
[13/44] Compiling Turf FeatureIdentifier.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/44] Compiling Turf GeoJSON.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/44] Compiling Turf GeometryCollection.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/44] Compiling Turf LineString.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/44] Compiling Turf MultiLineString.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/47] 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
[19/47] Compiling Turf MultiPoint.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
[20/47] Compiling Turf MultiPolygon.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
[21/47] Compiling Turf Point.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
[22/47] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.2 wasm