The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KSPlayer, reference 2.3.4 (bdfa2d), with Swift 6.1 for Wasm on 30 May 2025 10:08:30 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.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/kingslay/KSPlayer.git
Reference: 2.3.4
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/kingslay/KSPlayer
 * tag               2.3.4      -> FETCH_HEAD
HEAD is now at bdfa2da update
Cloned https://github.com/kingslay/KSPlayer.git
Revision (git rev-parse @):
bdfa2da39bb18865b317c4ffd08cdef5f8efc043
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/kingslay/KSPlayer.git at 2.3.4
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/kingslay/KSPlayer.git
https://github.com/kingslay/KSPlayer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "default_localization" : "en",
  "dependencies" : [
    {
      "identity" : "ffmpegkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.1.3",
            "upper_bound" : "7.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kingslay/FFmpegKit.git"
    }
  ],
  "manifest_display_name" : "KSPlayer",
  "name" : "KSPlayer",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "KSPlayer",
      "targets" : [
        "KSPlayer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KSPlayerTests",
      "module_type" : "SwiftTarget",
      "name" : "KSPlayerTests",
      "path" : "Tests/KSPlayerTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/KSPlayerTests/Resources/test.m3u",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "AudioTest.swift",
        "KSAVPlayerTest.swift",
        "KSMEPlayerTest.swift",
        "KSPlayerLayerTest.swift",
        "M3UParseTest.swift",
        "SubtitleTest.swift",
        "VideoPlayerControllerTest.swift",
        "VideoPlayerViewTest.swift"
      ],
      "target_dependencies" : [
        "KSPlayer"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KSPlayer",
      "module_type" : "SwiftTarget",
      "name" : "KSPlayer",
      "path" : "Sources/KSPlayer",
      "product_dependencies" : [
        "FFmpegKit"
      ],
      "product_memberships" : [
        "KSPlayer"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/KSPlayer/Metal/Shaders.metal",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "AVPlayer/KSAVPlayer.swift",
        "AVPlayer/KSOptions.swift",
        "AVPlayer/KSPictureInPictureController.swift",
        "AVPlayer/KSPlayerLayer.swift",
        "AVPlayer/KSVideoPlayer.swift",
        "AVPlayer/MediaPlayerProtocol.swift",
        "AVPlayer/PlayerDefines.swift",
        "Audio/AudioPlayerView.swift",
        "Core/AppKitExtend.swift",
        "Core/PlayerToolBar.swift",
        "Core/PlayerView.swift",
        "Core/UIKitExtend.swift",
        "Core/UXKit.swift",
        "Core/Utility.swift",
        "MEPlayer/AVFFmpegExtension.swift",
        "MEPlayer/AVFoundationExtension.swift",
        "MEPlayer/AudioEnginePlayer.swift",
        "MEPlayer/AudioGraphPlayer.swift",
        "MEPlayer/AudioRendererPlayer.swift",
        "MEPlayer/AudioUnitPlayer.swift",
        "MEPlayer/CircularBuffer.swift",
        "MEPlayer/EmbedDataSouce.swift",
        "MEPlayer/FFmpegAssetTrack.swift",
        "MEPlayer/FFmpegDecode.swift",
        "MEPlayer/Filter.swift",
        "MEPlayer/KSMEPlayer.swift",
        "MEPlayer/MEPlayerItem.swift",
        "MEPlayer/MEPlayerItemTrack.swift",
        "MEPlayer/MetalPlayView.swift",
        "MEPlayer/Model.swift",
        "MEPlayer/Resample.swift",
        "MEPlayer/SubtitleDecode.swift",
        "MEPlayer/ThumbnailController.swift",
        "MEPlayer/VideoToolboxDecode.swift",
        "Metal/DisplayModel.swift",
        "Metal/MetalRender.swift",
        "Metal/MotionSensor.swift",
        "Metal/PixelBufferProtocol.swift",
        "Metal/Transforms.swift",
        "Subtitle/AudioRecognize.swift",
        "Subtitle/KSParseProtocol.swift",
        "Subtitle/KSSubtitle.swift",
        "Subtitle/SubtitleDataSouce.swift",
        "SwiftUI/AirPlayView.swift",
        "SwiftUI/KSVideoPlayerView.swift",
        "SwiftUI/KSVideoPlayerViewBuilder.swift",
        "SwiftUI/LiveTextImage.swift",
        "SwiftUI/Slider.swift",
        "Video/BrightnessVolume.swift",
        "Video/IOSVideoPlayerView.swift",
        "Video/KSMenu.swift",
        "Video/KSPlayerItem.swift",
        "Video/MacVideoPlayerView.swift",
        "Video/PlayerFullScreenViewController.swift",
        "Video/PlayerTransitionAnimator.swift",
        "Video/SeekView.swift",
        "Video/VideoPlayerView.swift"
      ],
      "target_dependencies" : [
        "DisplayCriteria"
      ],
      "type" : "library"
    },
    {
      "c99name" : "DisplayCriteria",
      "module_type" : "ClangTarget",
      "name" : "DisplayCriteria",
      "path" : "Sources/DisplayCriteria",
      "product_memberships" : [
        "KSPlayer"
      ],
      "sources" : [
        "DisplayCriteria.m"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/kingslay/FFmpegKit.git
[1/8612] Fetching ffmpegkit
Fetched https://github.com/kingslay/FFmpegKit.git from cache (57.07s)
Computing version for https://github.com/kingslay/FFmpegKit.git
Computed https://github.com/kingslay/FFmpegKit.git at 6.1.3 (58.24s)
Creating working copy for https://github.com/kingslay/FFmpegKit.git
Working copy of https://github.com/kingslay/FFmpegKit.git resolved at 6.1.3
warning: couldn't find pc file for sdl2
warning: couldn't find pc file for sdl2
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/BuildFFMPEG.swift:21:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 19 |         let lldbFile = URL.currentDirectory + "LLDBInitFile"
 20 |         try? FileManager.default.removeItem(at: lldbFile)
 21 |         FileManager.default.createFile(atPath: lldbFile.path, contents: nil, attributes: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 22 |         let path = directoryURL + "libavcodec/videotoolbox.c"
 23 |         if let data = FileManager.default.contents(atPath: path.path), var str = String(data: data, encoding: .utf8) {
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/BuildPlacebo.swift:80:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 78 |                 Cflags: -I${includedir}
 79 |                 """
 80 |                 FileManager.default.createFile(atPath: vulkanPC.path, contents: content.data(using: .utf8), attributes: nil)
    |                                     `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 81 |             }
 82 |         }
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/main.swift:54:29: warning: result of call to 'changeCurrentDirectoryPath' is unused
  52 |             try FileManager.default.createDirectory(at: path, withIntermediateDirectories: true)
  53 |         }
  54 |         FileManager.default.changeCurrentDirectoryPath(path.path)
     |                             `- warning: result of call to 'changeCurrentDirectoryPath' is unused
  55 |         var librarys = [Library]()
  56 |         var isFFmpegDebug = false
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/main.swift:631:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 629 |         }
 630 |         """
 631 |         FileManager.default.createFile(atPath: frameworkDir.path + "/Modules/module.modulemap", contents: modulemap.data(using: .utf8), attributes: nil)
     |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 632 |         createPlist(path: frameworkDir.path + "/Info.plist", name: framework, minVersion: platform.minVersion, platform: platform.sdk)
 633 |         return frameworkDir.path
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/main.swift:692:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 690 |         </plist>
 691 |         """
 692 |         FileManager.default.createFile(atPath: path, contents: content.data(using: .utf8), attributes: nil)
     |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 693 |     }
 694 |
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/main.swift:740:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 738 |         objcpp_link_args = [\(ldFlags)]
 739 |         """
 740 |         FileManager.default.createFile(atPath: crossFile.path, contents: content.data(using: .utf8), attributes: nil)
     |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 741 |         return crossFile
 742 |     }
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/main.swift:1013:35: error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
1011 |         if architecture == 0x0100_000C, self == .arm64 || self == .arm64e {
1012 |             return true
1013 |         } else if architecture == NSBundleExecutableArchitectureX86_64, self == .x86_64 {
     |                                   `- error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
1014 |             return true
1015 |         }
[1/1] Compiling plugin BuildFFmpeg
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
warning: couldn't find pc file for sdl2
warning: couldn't find pc file for sdl2
[0/1] Planning build
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/BuildFFMPEG.swift:21:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 19 |         let lldbFile = URL.currentDirectory + "LLDBInitFile"
 20 |         try? FileManager.default.removeItem(at: lldbFile)
 21 |         FileManager.default.createFile(atPath: lldbFile.path, contents: nil, attributes: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 22 |         let path = directoryURL + "libavcodec/videotoolbox.c"
 23 |         if let data = FileManager.default.contents(atPath: path.path), var str = String(data: data, encoding: .utf8) {
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/BuildPlacebo.swift:80:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 78 |                 Cflags: -I${includedir}
 79 |                 """
 80 |                 FileManager.default.createFile(atPath: vulkanPC.path, contents: content.data(using: .utf8), attributes: nil)
    |                                     `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 81 |             }
 82 |         }
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/main.swift:54:29: warning: result of call to 'changeCurrentDirectoryPath' is unused
  52 |             try FileManager.default.createDirectory(at: path, withIntermediateDirectories: true)
  53 |         }
  54 |         FileManager.default.changeCurrentDirectoryPath(path.path)
     |                             `- warning: result of call to 'changeCurrentDirectoryPath' is unused
  55 |         var librarys = [Library]()
  56 |         var isFFmpegDebug = false
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/main.swift:631:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 629 |         }
 630 |         """
 631 |         FileManager.default.createFile(atPath: frameworkDir.path + "/Modules/module.modulemap", contents: modulemap.data(using: .utf8), attributes: nil)
     |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 632 |         createPlist(path: frameworkDir.path + "/Info.plist", name: framework, minVersion: platform.minVersion, platform: platform.sdk)
 633 |         return frameworkDir.path
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/main.swift:692:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 690 |         </plist>
 691 |         """
 692 |         FileManager.default.createFile(atPath: path, contents: content.data(using: .utf8), attributes: nil)
     |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 693 |     }
 694 |
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/main.swift:740:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 738 |         objcpp_link_args = [\(ldFlags)]
 739 |         """
 740 |         FileManager.default.createFile(atPath: crossFile.path, contents: content.data(using: .utf8), attributes: nil)
     |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 741 |         return crossFile
 742 |     }
/host/spi-builder-workspace/.build/checkouts/FFmpegKit/Plugins/BuildFFmpeg/main.swift:1013:35: error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
1011 |         if architecture == 0x0100_000C, self == .arm64 || self == .arm64e {
1012 |             return true
1013 |         } else if architecture == NSBundleExecutableArchitectureX86_64, self == .x86_64 {
     |                                   `- error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
1014 |             return true
1015 |         }
[1/1] Compiling plugin BuildFFmpeg
BUILD FAILURE 6.1 wasm