The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build node-swift with Swift 5.10 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.43.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kabiroberai/node-swift.git
Reference: 1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kabiroberai/node-swift
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at a4395d5 Support Swift 6 (#21)
Cloned https://github.com/kabiroberai/node-swift.git
Revision (git rev-parse @):
a4395d521917b3dfc4067839435285e6718194e8
SUCCESS checkout https://github.com/kabiroberai/node-swift.git at 1.2.0
Fetching https://github.com/apple/swift-syntax.git
[1/61417] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (3.58s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 510.0.1 (0.70s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 510.0.1
========================================
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": "node-swift",
      "name": "node-swift",
      "url": "https://github.com/kabiroberai/node-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/node-swift",
      "dependencies": [
        {
          "identity": "swift-syntax",
          "name": "swift-syntax",
          "url": "https://github.com/apple/swift-syntax.git",
          "version": "510.0.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/kabiroberai/node-swift.git
[1/1829] Fetching node-swift
Fetched https://github.com/kabiroberai/node-swift.git from cache (1.14s)
Fetching https://github.com/apple/swift-syntax.git from cache
Fetched https://github.com/apple/swift-syntax.git from cache (0.92s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 510.0.2 (0.03s)
Creating working copy for https://github.com/kabiroberai/node-swift.git
Working copy of https://github.com/kabiroberai/node-swift.git resolved at 1.2.0 (a4395d5)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 510.0.2
warning: '.resolve-product-dependencies': dependency 'node-swift' is not used by any target
Found 1 product dependencies
  - swift-syntax
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $workDir
https://github.com/kabiroberai/node-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/24] Write sources
[16/24] Write swift-version-33747A42983211AE.txt
[17/24] Compiling NodeModuleSupport win_delay_load_hook.cc
[18/28] Compiling CNodeAPISupport task_reflection.cpp
[19/28] Compiling CNodeAPISupport node_context.c
[20/28] Compiling NodeModuleSupport register.m
[22/28] Compiling SwiftSyntax510 Empty.swift
[23/28] Emitting module SwiftSyntax510
[24/28] Emitting module SwiftSyntax509
[25/28] Compiling SwiftSyntax509 Empty.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNodeJSC/js_native_api_javascriptcore.cc:709:5: error: constructor 'napi_ref__' should not return a value [-Wreturn-type]
    return napi_ok;
    ^      ~~~~~~~
1 error generated.
[25/90] Compiling CNodeJSC js_native_api_javascriptcore.cc
BUILD FAILURE 5.10 macosSpm