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 JSONPreview, reference 2.3.3 (259c8a), with Swift 6.1 for Wasm on 30 May 2025 16:40:45 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RakuyoKit/JSONPreview.git
Reference: 2.3.3
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/RakuyoKit/JSONPreview
 * tag               2.3.3      -> FETCH_HEAD
HEAD is now at 259c8a5 Merge branch release/2.3.3
Cloned https://github.com/RakuyoKit/JSONPreview.git
Revision (git rev-parse @):
259c8a56e4f3b4b1c92ad1e0493e53b0f79196fc
SUCCESS checkout https://github.com/RakuyoKit/JSONPreview.git at 2.3.3
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/RakuyoKit/JSONPreview.git
https://github.com/RakuyoKit/JSONPreview.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift",
      "requirement" : {
        "branch" : [
          "release/1.4.0"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/RakuyoKit/swift.git"
    }
  ],
  "manifest_display_name" : "JSONPreview",
  "name" : "JSONPreview",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "JSONPreview",
      "targets" : [
        "JSONPreview"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONPreviewTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONPreviewTests",
      "path" : "Tests",
      "sources" : [
        "JSONPreviewTests/JSONPreviewTests.swift"
      ],
      "target_dependencies" : [
        "JSONPreview"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSONPreview",
      "module_type" : "SwiftTarget",
      "name" : "JSONPreview",
      "path" : "Sources",
      "product_memberships" : [
        "JSONPreview"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/Resources/Assets.xcassets",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Entity/HighlightColor.swift",
        "Entity/HighlightStyle.swift",
        "Entity/JSONError.swift",
        "Entity/JSONObjectKey.swift",
        "Entity/JSONSlice.swift",
        "Entity/JSONValue.swift",
        "Entity/Orientation.swift",
        "Model/AttributedStringSizeCalculator.swift",
        "Model/JSONDecorator.swift",
        "Model/JSONParser.swift",
        "Tools/Dictionary+Sort.swift",
        "Tools/String+Range.swift",
        "Tools/String+ValidURL.swift",
        "View/JSONPreview.swift",
        "View/JSONPreviewDelegate.swift",
        "View/JSONScrollView.swift",
        "View/JSONTextView.swift",
        "View/LineNumberCell.swift",
        "View/LineNumberTableView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/RakuyoKit/swift.git
[1/2377] Fetching swift
Fetched https://github.com/RakuyoKit/swift.git from cache (0.53s)
Fetching https://github.com/apple/swift-argument-parser
[1/15386] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.28s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (1.85s)
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/RakuyoKit/swift.git
Working copy of https://github.com/RakuyoKit/swift.git resolved at release/1.4.0 (9cb218a)
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip
Downloading binary artifact https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.0/SwiftFormat.artifactbundle.zip
[1397/11034045] Downloading https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip
[35086/39231213] Downloading https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip, https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.0/SwiftFormat.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip (1.41s)
Downloaded https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.0/SwiftFormat.artifactbundle.zip (3.00s)
/host/spi-builder-workspace/.build/checkouts/swift/Plugins/FormatSwift/Plugin.swift:53:13: warning: 'launchPath' is deprecated: renamed to 'executableURL'
 51 |
 52 |     let process = Process()
 53 |     process.launchPath = launchPath
    |             |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
    |             `- note: use 'executableURL' instead
 54 |     process.arguments = arguments
 55 |     try process.run()
[1/1] Compiling plugin FormatSwift
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/6] Copying PrivacyInfo.xcprivacy
[2/6] Write sources
[4/6] Copying Assets.xcassets
[5/6] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/25] Emitting module JSONPreview
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[8/27] Compiling JSONPreview JSONTextView.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[9/27] Compiling JSONPreview LineNumberCell.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[10/27] Compiling JSONPreview HighlightColor.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[11/27] Compiling JSONPreview HighlightStyle.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[12/27] Compiling JSONPreview JSONError.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[13/27] Compiling JSONPreview LineNumberTableView.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[14/27] Compiling JSONPreview resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[15/27] Compiling JSONPreview String+ValidURL.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[16/27] Compiling JSONPreview JSONPreview.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[17/27] Compiling JSONPreview JSONPreviewDelegate.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[18/27] Compiling JSONPreview JSONScrollView.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[19/27] Compiling JSONPreview JSONParser.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[20/27] Compiling JSONPreview Dictionary+Sort.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[21/27] Compiling JSONPreview String+Range.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[22/27] Compiling JSONPreview JSONObjectKey.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[23/27] Compiling JSONPreview JSONSlice.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[24/27] Compiling JSONPreview JSONValue.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[25/27] Compiling JSONPreview Orientation.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[26/27] Compiling JSONPreview AttributedStringSizeCalculator.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[27/27] Compiling JSONPreview JSONDecorator.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
/host/spi-builder-workspace/.build/checkouts/swift/Plugins/FormatSwift/Plugin.swift:53:13: warning: 'launchPath' is deprecated: renamed to 'executableURL'
 51 |
 52 |     let process = Process()
 53 |     process.launchPath = launchPath
    |             |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
    |             `- note: use 'executableURL' instead
 54 |     process.arguments = arguments
 55 |     try process.run()
[1/1] Compiling plugin FormatSwift
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/22] Emitting module JSONPreview
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[5/24] Compiling JSONPreview JSONPreviewDelegate.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[6/24] Compiling JSONPreview JSONScrollView.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[7/24] Compiling JSONPreview LineNumberTableView.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[8/24] Compiling JSONPreview resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[9/24] Compiling JSONPreview JSONTextView.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[10/24] Compiling JSONPreview LineNumberCell.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[11/24] Compiling JSONPreview JSONObjectKey.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[12/24] Compiling JSONPreview JSONSlice.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[13/24] Compiling JSONPreview JSONValue.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[14/24] Compiling JSONPreview Orientation.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[15/24] Compiling JSONPreview AttributedStringSizeCalculator.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[16/24] Compiling JSONPreview JSONDecorator.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[17/24] Compiling JSONPreview String+ValidURL.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[18/24] Compiling JSONPreview JSONPreview.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[19/24] Compiling JSONPreview HighlightColor.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[20/24] Compiling JSONPreview HighlightStyle.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[21/24] Compiling JSONPreview JSONError.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[22/24] Compiling JSONPreview JSONParser.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[23/24] Compiling JSONPreview Dictionary+Sort.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
[24/24] Compiling JSONPreview String+Range.swift
/host/spi-builder-workspace/Sources/Entity/HighlightColor.swift:9:8: error: no such module 'UIKit'
  7 | //
  8 |
  9 | import UIKit
    |        `- error: no such module 'UIKit'
 10 |
 11 | // MARK: - HighlightColor
BUILD FAILURE 6.1 wasm