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.9 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.2.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $workDir
https://github.com/kabiroberai/node-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/6] Compiling NodeModuleSupport win_delay_load_hook.cc
[1/10] Compiling CNodeAPISupport task_reflection.cpp
[3/10] Emitting module SwiftSyntax510
[3/10] Compiling CNodeAPISupport node_context.c
[4/10] Compiling NodeModuleSupport register.m
[6/10] Compiling SwiftSyntax510 Empty.swift
[7/10] Compiling SwiftSyntax509 Empty.swift
[8/10] Emitting module SwiftSyntax509
/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.
[8/72] Compiling CNodeJSC js_native_api_javascriptcore.cc
Fetching https://github.com/apple/swift-syntax.git
[1/61417] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git (3.77s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 510.0.1 (0.72s)
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
BUILD FAILURE 5.9 macosSpm