The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Resource Rewriter for Xcode, reference main (fe94bf), with Swift 6.1 for Wasm on 29 May 2025 04:54:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/idrougge/ResourceRewriterForXcode.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/idrougge/ResourceRewriterForXcode
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fe94bf2 Merge pull request #2 from idrougge/colour
Cloned https://github.com/idrougge/ResourceRewriterForXcode.git
Revision (git rev-parse @):
fe94bf2424c91b6c28af54c94216147d90f1252d
SUCCESS checkout https://github.com/idrougge/ResourceRewriterForXcode.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/idrougge/ResourceRewriterForXcode.git
https://github.com/idrougge/ResourceRewriterForXcode.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    },
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "509.0.0",
            "upper_bound" : "510.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-syntax.git"
    }
  ],
  "manifest_display_name" : "Resource Rewriter for Xcode",
  "name" : "Resource Rewriter for Xcode",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Rewrite image resource strings",
      "targets" : [
        "Rewrite image resource strings"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "Rewrite colour resource strings",
      "targets" : [
        "Rewrite colour resource strings"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "ResourceRewriterForXcode",
      "targets" : [
        "ResourceRewriterForXcode"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Rewrite_image_resource_strings",
      "module_type" : "PluginTarget",
      "name" : "Rewrite image resource strings",
      "path" : "Plugins/Rewrite image resource strings",
      "plugin_capability" : {
        "intent" : {
          "type" : "sourceCodeFormatting"
        },
        "permissions" : [
          {
            "network_scope" : {
              "none" : {
              }
            },
            "reason" : "Your `UIImage(named:)` calls will be rewritten as `UImage(resource:)` calls.\nPlease commit before running.",
            "type" : "writeToPackageDirectory"
          }
        ],
        "type" : "command"
      },
      "product_memberships" : [
        "Rewrite image resource strings"
      ],
      "sources" : [
        "plugin.swift"
      ],
      "target_dependencies" : [
        "ResourceRewriterForXcode"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "Rewrite_colour_resource_strings",
      "module_type" : "PluginTarget",
      "name" : "Rewrite colour resource strings",
      "path" : "Plugins/Rewrite colour resource strings",
      "plugin_capability" : {
        "intent" : {
          "type" : "sourceCodeFormatting"
        },
        "permissions" : [
          {
            "network_scope" : {
              "none" : {
              }
            },
            "reason" : "Your `UIColor(named:)` calls will be rewritten as `UIColor(resource:)` calls.\nPlease commit before running.",
            "type" : "writeToPackageDirectory"
          }
        ],
        "type" : "command"
      },
      "product_memberships" : [
        "Rewrite colour resource strings"
      ],
      "sources" : [
        "plugin.swift"
      ],
      "target_dependencies" : [
        "ResourceRewriterForXcode"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "ResourceRewriterForXcodeTests",
      "module_type" : "SwiftTarget",
      "name" : "ResourceRewriterForXcodeTests",
      "path" : "Tests",
      "sources" : [
        "ColourTests.swift",
        "ImageTests.swift"
      ],
      "target_dependencies" : [
        "ResourceRewriterForXcode"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ResourceRewriterForXcode",
      "module_type" : "SwiftTarget",
      "name" : "ResourceRewriterForXcode",
      "path" : "Sources",
      "product_dependencies" : [
        "ArgumentParser",
        "SwiftSyntax",
        "SwiftParser"
      ],
      "product_memberships" : [
        "Rewrite image resource strings",
        "Rewrite colour resource strings",
        "ResourceRewriterForXcode"
      ],
      "sources" : [
        "ResourceRewriterForXcode.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-syntax.git
[1/15379] Fetching swift-argument-parser
[13535/85831] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git from cache (8.47s)
Fetched https://github.com/apple/swift-syntax.git from cache (8.54s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (13.47s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (0.82s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.1
error: emit-module command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/Plugins/Rewrite colour resource strings/plugin.swift:9:8: error: no such module 'XcodeProjectPlugin'
 7 |
 8 | import PackagePlugin
 9 | import XcodeProjectPlugin
   |        `- error: no such module 'XcodeProjectPlugin'
10 | import Foundation
11 |
[1/1] Compiling plugin Rewrite colour resource strings
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/Plugins/Rewrite colour resource strings/plugin.swift:9:8: error: no such module 'XcodeProjectPlugin'
 7 |
 8 | import PackagePlugin
 9 | import XcodeProjectPlugin
   |        `- error: no such module 'XcodeProjectPlugin'
10 | import Foundation
11 |
[1/1] Compiling plugin Rewrite colour resource strings
BUILD FAILURE 6.1 wasm