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 SwiftCodePatterns, reference main (dd4a0c), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 16:20:21 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ShenghaiWang/SwiftCodePatterns.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ShenghaiWang/SwiftCodePatterns
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at dd4a0c0 Fix typo
Cloned https://github.com/ShenghaiWang/SwiftCodePatterns.git
Revision (git rev-parse @):
dd4a0c0b292abe434966039db55679ffb311e154
SUCCESS checkout https://github.com/ShenghaiWang/SwiftCodePatterns.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swiftcodepatterns",
      "name": "SwiftCodePatterns",
      "url": "https://github.com/ShenghaiWang/SwiftCodePatterns.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftCodePatterns",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ShenghaiWang/SwiftCodePatterns.git
[1/34] Fetching swiftcodepatterns
Fetched https://github.com/ShenghaiWang/SwiftCodePatterns.git from cache (2.74s)
Creating working copy for https://github.com/ShenghaiWang/SwiftCodePatterns.git
Working copy of https://github.com/ShenghaiWang/SwiftCodePatterns.git resolved at main (dd4a0c0)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ShenghaiWang/SwiftCodePatterns.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCodePatterns",
  "name" : "SwiftCodePatterns",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "Code Patterns Command",
      "targets" : [
        "Code Patterns Command"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "Code Patterns BuildTool",
      "targets" : [
        "Code Patterns BuildTool"
      ],
      "type" : {
        "plugin" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Transformer",
      "module_type" : "BinaryTarget",
      "name" : "Transformer",
      "path" : "Transformer.artifactbundle",
      "product_memberships" : [
        "Code Patterns Command",
        "Code Patterns BuildTool"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "Code_Patterns_Command",
      "module_type" : "PluginTarget",
      "name" : "Code Patterns Command",
      "path" : "Plugins/Code Patterns Command",
      "plugin_capability" : {
        "intent" : {
          "description" : "Generate code based on the AutoCodePatterns.yml configuration",
          "type" : "custom",
          "verb" : "Run Code Patterns"
        },
        "permissions" : [
        ],
        "type" : "command"
      },
      "product_memberships" : [
        "Code Patterns Command"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Transformer"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "Code_Patterns_BuildTool",
      "module_type" : "PluginTarget",
      "name" : "Code Patterns BuildTool",
      "path" : "Plugins/Code Patterns BuildTool",
      "plugin_capability" : {
        "type" : "buildTool"
      },
      "product_memberships" : [
        "Code Patterns BuildTool"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Transformer"
      ],
      "type" : "plugin"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
error: The package does not contain a buildable target.
Add at least one `.target` or `.executableTarget` to your `Package.swift`.
BUILD FAILURE 6.0 macosSpm