The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MGUtils, reference 1.0.2 (6bae52), with Swift 6.1 for Wasm on 29 Jul 2025 18:30:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dongzs0907/MGUtils.git
Reference: 1.0.2
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/dongzs0907/MGUtils
 * tag               1.0.2      -> FETCH_HEAD
HEAD is now at 6bae527 完善
Cloned https://github.com/dongzs0907/MGUtils.git
Revision (git rev-parse @):
6bae527ed7172d03720dd40b89f32af6882913f2
SUCCESS checkout https://github.com/dongzs0907/MGUtils.git at 1.0.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/dongzs0907/MGUtils.git
https://github.com/dongzs0907/MGUtils.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
error: 'spi-builder-workspace': Invalid manifest (compiled with: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.xFiU8q/vfs.yaml", "-L", "/usr/lib/swift/pm/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/usr/lib/swift/pm/ManifestAPI", "-swift-version", "5", "-I", "/usr/lib/swift/pm/ManifestAPI", "-package-description-version", "5.9.0", "/host/spi-builder-workspace/Package.swift", "-o", "/tmp/TemporaryDirectory.ZBcAyZ/spi-builder-workspace-manifest"])
/host/spi-builder-workspace/Package.swift:25:9: error: unexpected ',' separator
23 |                 .linkedFramework("UIKit", .when(platforms: [.iOS])) // 关键:显式链接 UIKit[3,5](@ref)
24 |             ],
25 |         ),
   |         `- error: unexpected ',' separator
26 |
27 |         .testTarget(
error: fatalError
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/3] Write sources
[1/3] Copying Media.xcassets
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/19] Compiling MGUtils DeviceUtils.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[5/19] Compiling MGUtils LaunchManage.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[6/21] Compiling MGUtils IB_UIKit.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[7/21] Compiling MGUtils UIButton+ImageTitleSpacing.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[8/21] Compiling MGUtils UITableView(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[9/21] Compiling MGUtils UIView(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[10/21] Compiling MGUtils UIViewController(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[11/21] Compiling MGUtils MBProgressHUD.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[12/21] Compiling MGUtils Toast.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[13/21] Compiling MGUtils resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/21] Emitting module MGUtils
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[15/21] Compiling MGUtils String(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[16/21] Compiling MGUtils UIColor(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[17/21] Compiling MGUtils MGUtils.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[18/21] Compiling MGUtils CALayer+Heartbeat.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[19/21] Compiling MGUtils Array(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[20/21] Compiling MGUtils Date(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[21/21] Compiling MGUtils Number(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/17] Emitting module MGUtils
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[3/19] Compiling MGUtils Toast.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[4/19] Compiling MGUtils resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[5/19] Compiling MGUtils IB_UIKit.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[6/19] Compiling MGUtils UIButton+ImageTitleSpacing.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[7/19] Compiling MGUtils String(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[8/19] Compiling MGUtils UIColor(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[9/19] Compiling MGUtils DeviceUtils.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[10/19] Compiling MGUtils LaunchManage.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[11/19] Compiling MGUtils UITableView(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[12/19] Compiling MGUtils UIView(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[13/19] Compiling MGUtils MGUtils.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[14/19] Compiling MGUtils CALayer+Heartbeat.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[15/19] Compiling MGUtils Array(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[16/19] Compiling MGUtils Date(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[17/19] Compiling MGUtils Number(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[18/19] Compiling MGUtils UIViewController(extension).swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
[19/19] Compiling MGUtils MBProgressHUD.swift
/host/spi-builder-workspace/Sources/MGUtils/Libs/MBProgressHUD.swift:8:8: error: no such module 'UIKit'
   6 | //
   7 |
   8 | import UIKit
     |        `- error: no such module 'UIKit'
   9 | import CoreGraphics
  10 |
BUILD FAILURE 6.1 wasm