Closed Rex-xingjl closed 7 months ago
There’s a couple of different aspects here:
As a workaround, node-swift has the ability to directly build with xcodebuild
instead of swift build
. You can use that mode instead by setting "swift": { "builder": "xcode" }
in your package.json before running npm run node-swift build
.
I used the command
swift build --arch x86_64 --arch arm64
in the subdirectory of the node-swift folder. At this point, in the build folder, I can see both the compiled files for arm64 and x86_64 architectures. However, when I go further into the example folder and execute the same command for compilation, it throws an error.