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 OpenCV, reference 4.12.0 (141d91), with Swift 6.2 for watchOS using Xcode 26.0 on 21 Oct 2025 06:21:30 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme OpenCV -destination generic/platform=watchOS

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yeatse/opencv-spm.git
Reference: 4.12.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yeatse/opencv-spm
 * tag               4.12.0     -> FETCH_HEAD
HEAD is now at 141d91b Update Package.swift
Cloned https://github.com/yeatse/opencv-spm.git
Revision (git rev-parse @):
141d91be1f53990b4f5d63e1373afba539a7914d
SUCCESS checkout https://github.com/yeatse/opencv-spm.git at 4.12.0
========================================
Build
========================================
Selected platform:         watchOS
Swift version:             6.2
Building package at path:  $PWD
https://github.com/yeatse/opencv-spm.git
Command line invocation:
    /Applications/Xcode-26.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolve Package Graph
Resolved source packages:
  OpenCV: /Users/admin/builder/spi-builder-workspace
resolved source packages: OpenCV
2025-10-21 02:21:20.609 xcodebuild[525:3065] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenCV",
  "name" : "OpenCV",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenCV",
      "targets" : [
        "opencv2",
        "opencv2-dependencies"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "opencv2_dependencies",
      "module_type" : "SwiftTarget",
      "name" : "opencv2-dependencies",
      "path" : "Sources/opencv2-dependencies",
      "product_memberships" : [
        "OpenCV"
      ],
      "sources" : [
        "Stub.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "opencv2",
      "module_type" : "BinaryTarget",
      "name" : "opencv2",
      "path" : "remote/archive/opencv2.xcframework.zip",
      "product_memberships" : [
        "OpenCV"
      ],
      "sources" : [
      ],
      "type" : "binary"
    }
  ],
  "tools_version" : "5.9"
}
{
  "workspace" : {
    "name" : "spi-builder-workspace",
    "schemes" : [
      "OpenCV"
    ]
  }
}
2025-10-21 02:21:25.408 xcodebuild[620:3752] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme OpenCV -destination generic/platform=watchOS
Command line invocation:
    /Applications/Xcode-26.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme OpenCV -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
  OpenCV: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
    Target 'OpenCV' in project 'OpenCV'
        ➜ Explicit dependency on target 'opencv2-dependencies' in project 'OpenCV'
    Target 'opencv2-dependencies' in project 'OpenCV' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ExecuteExternalTool /Applications/Xcode-26.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS26.0.sdk -x c -c /dev/null
ExecuteExternalTool /Applications/Xcode-26.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version
ExecuteExternalTool /Applications/Xcode-26.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
Build description signature: 078aee7641ca083ecb9389c2ecadcad5
Build description path: /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/XCBuildData/078aee7641ca083ecb9389c2ecadcad5.xcbuilddata
/Users/admin/builder/spi-builder-workspace/.dependencies/artifacts/spi-builder-workspace/opencv2/opencv2.xcframework:1:1: error: While building for watchOS, no library for this platform was found in '/Users/admin/builder/spi-builder-workspace/.dependencies/artifacts/spi-builder-workspace/opencv2/opencv2.xcframework'. (in target 'OpenCV' from project 'OpenCV')
2025-10-21 02:21:26.818 xcodebuild[622:3786] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
	Building workspace spi-builder-workspace with scheme OpenCV
(1 failure)
Command line invocation:
    /Applications/Xcode-26.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
  OpenCV: /Users/admin/builder/spi-builder-workspace
resolved source packages: OpenCV
2025-10-21 02:21:28.303 xcodebuild[637:3895] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenCV",
  "name" : "OpenCV",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenCV",
      "targets" : [
        "opencv2",
        "opencv2-dependencies"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "opencv2_dependencies",
      "module_type" : "SwiftTarget",
      "name" : "opencv2-dependencies",
      "path" : "Sources/opencv2-dependencies",
      "product_memberships" : [
        "OpenCV"
      ],
      "sources" : [
        "Stub.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "opencv2",
      "module_type" : "BinaryTarget",
      "name" : "opencv2",
      "path" : "remote/archive/opencv2.xcframework.zip",
      "product_memberships" : [
        "OpenCV"
      ],
      "sources" : [
      ],
      "type" : "binary"
    }
  ],
  "tools_version" : "5.9"
}
{
  "workspace" : {
    "name" : "spi-builder-workspace",
    "schemes" : [
      "OpenCV"
    ]
  }
}
2025-10-21 02:21:29.347 xcodebuild[645:3954] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme OpenCV -destination generic/platform=watchOS
Command line invocation:
    /Applications/Xcode-26.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme OpenCV -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
  OpenCV: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
    Target 'OpenCV' in project 'OpenCV'
        ➜ Explicit dependency on target 'opencv2-dependencies' in project 'OpenCV'
    Target 'opencv2-dependencies' in project 'OpenCV' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ExecuteExternalTool /Applications/Xcode-26.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS26.0.sdk -x c -c /dev/null
ExecuteExternalTool /Applications/Xcode-26.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version
ExecuteExternalTool /Applications/Xcode-26.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
Build description signature: 078aee7641ca083ecb9389c2ecadcad5
Build description path: /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/XCBuildData/078aee7641ca083ecb9389c2ecadcad5.xcbuilddata
/Users/admin/builder/spi-builder-workspace/.dependencies/artifacts/spi-builder-workspace/opencv2/opencv2.xcframework:1:1: error: While building for watchOS, no library for this platform was found in '/Users/admin/builder/spi-builder-workspace/.dependencies/artifacts/spi-builder-workspace/opencv2/opencv2.xcframework'. (in target 'OpenCV' from project 'OpenCV')
2025-10-21 02:21:30.157 xcodebuild[647:3986] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
	Building workspace spi-builder-workspace with scheme OpenCV
(1 failure)
BUILD FAILURE 6.2 watchOS