Build Information
Failed to build SwiftGLTF, reference main (4160ed
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 01:56:02 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/schwa/SwiftGLTF.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/schwa/SwiftGLTF
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4160ed7 Fix download url
Cloned https://github.com/schwa/SwiftGLTF.git
Revision (git rev-parse @):
4160ed7e89b7cfcccf5ff7a0cbfd5b055fada771
SUCCESS checkout https://github.com/schwa/SwiftGLTF.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": "swiftgltf",
"name": "SwiftGLTF",
"url": "https://github.com/schwa/SwiftGLTF.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftGLTF",
"dependencies": [
]
}
]
}
Fetching https://github.com/schwa/SwiftGLTF.git
[1/341] Fetching swiftgltf
Fetched https://github.com/schwa/SwiftGLTF.git from cache (1.67s)
Creating working copy for https://github.com/schwa/SwiftGLTF.git
Working copy of https://github.com/schwa/SwiftGLTF.git resolved at main (4160ed7)
warning: '.resolve-product-dependencies': dependency 'swiftgltf' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/schwa/SwiftGLTF.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftGLTF",
"name" : "SwiftGLTF",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "maccatalyst",
"version" : "17.0"
}
],
"products" : [
{
"name" : "SwiftGLTF",
"targets" : [
"SwiftGLTF"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftGLTFTests",
"module_type" : "SwiftTarget",
"name" : "SwiftGLTFTests",
"path" : "Tests/SwiftGLTFTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftGLTFTests/Box-byteStride.glb",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftGLTFTests/Box.gltf",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"GLTFTests.swift"
],
"target_dependencies" : [
"SwiftGLTF"
],
"type" : "test"
},
{
"c99name" : "SwiftGLTF",
"module_type" : "SwiftTarget",
"name" : "SwiftGLTF",
"path" : "Sources/SwiftGLTF",
"product_memberships" : [
"SwiftGLTF"
],
"sources" : [
"CollectionScanner.swift",
"Scratch.swift",
"glb.swift",
"gltf+RealityKit.swift",
"gltf+SceneKit.swift",
"gltf.swift"
],
"type" : "library"
}
],
"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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: compile command failed due to signal 11 (use -v to see invocation)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift:23:9: error: type 'Scene' does not conform to protocol 'Resolver'
21 | public func generateSCNScene() throws -> SCNScene {
22 | let scnScene = SCNScene()
23 | let scene = try document.scene.map { try $0.resolve(in: document) } ?? document.scenes.first!
| `- error: type 'Scene' does not conform to protocol 'Resolver'
24 | try scene.nodes
25 | .map { try $0.resolve(in: document) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift:34:9: error: type 'Mesh' does not conform to protocol 'Resolver'
32 |
33 | func generateSCNNode(from node: Node) throws -> SCNNode {
34 | let geometry = try node.mesh.map { try generateSCNGeometry(from: $0.resolve(in: document)) }
| `- error: type 'Mesh' does not conform to protocol 'Resolver'
35 | let scnNode = SCNNode(geometry: geometry)
36 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift:33:10: error: type 'Node' does not conform to protocol 'Resolver'
31 | }
32 |
33 | func generateSCNNode(from node: Node) throws -> SCNNode {
| `- error: type 'Node' does not conform to protocol 'Resolver'
34 | let geometry = try node.mesh.map { try generateSCNGeometry(from: $0.resolve(in: document)) }
35 | let scnNode = SCNNode(geometry: geometry)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift:78:13: error: type 'Buffer' does not conform to protocol 'Resolver'
76 | }
77 | else {
78 | let buffer = try bufferIndex.resolve(in: document)
| `- error: type 'Buffer' does not conform to protocol 'Resolver'
79 | guard let uri = buffer.uri else {
80 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift:92:9: error: type 'BufferView' does not conform to protocol 'Resolver'
90 |
91 | func generateSCNGeometrySource(semantic: SCNGeometrySource.Semantic, from accessor: Accessor) throws -> SCNGeometrySource {
92 | let bufferView = try accessor.bufferView!.resolve(in: document)
| `- error: type 'BufferView' does not conform to protocol 'Resolver'
93 | let bufferData = try data(for: bufferView.buffer)
94 | .subdata(in: bufferView.byteOffset ..< (bufferView.byteOffset + bufferView.byteLength))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift:125:10: error: type 'Accessor' does not conform to protocol 'Resolver'
123 | }
124 |
125 | func generateSCNGeometry(from mesh: Mesh) throws -> SCNGeometry {
| `- error: type 'Accessor' does not conform to protocol 'Resolver'
126 | let sourcesAndElements: [([SCNGeometrySource], SCNGeometryElement?, [SCNMaterial])] = try mesh.primitives.map { primitive in
127 | let semantics: [(Mesh.Primitive.Semantic, SCNGeometrySource.Semantic?)] = [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift:125:10: error: type 'Material' does not conform to protocol 'Resolver'
123 | }
124 |
125 | func generateSCNGeometry(from mesh: Mesh) throws -> SCNGeometry {
| `- error: type 'Material' does not conform to protocol 'Resolver'
126 | let sourcesAndElements: [([SCNGeometrySource], SCNGeometryElement?, [SCNMaterial])] = try mesh.primitives.map { primitive in
127 | let semantics: [(Mesh.Primitive.Semantic, SCNGeometrySource.Semantic?)] = [
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/CollectionScanner.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Scratch.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/glb.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SwiftGLTF.build/gltf+SceneKit.d -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SwiftGLTF.build/gltf+SceneKit.swiftdeps -target arm64-apple-macosx14.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk -I /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Modules -I /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-driver -stats-output-dir .stats -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures -strict-concurrency=complete -empty-abi-descriptor -resource-dir /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace -Xcc -isysroot -Xcc /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk -Xcc -F -Xcc /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name SwiftGLTF -disable-clang-spi -target-sdk-version 15.1 -target-sdk-name macosx15.1 -external-plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SwiftGLTF.build/gltf+SceneKit.swift.o -index-store-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/index/store -index-system-modules
1. Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
2. Compiling with effective version 5.10
3. While evaluating request TypeCheckSourceFileRequest(source_file "/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift")
4. While evaluating request TypeCheckFunctionBodyRequest(SwiftGLTF.(file).SceneKitGenerator.generateSCNGeometry(from:)@/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift:125:10)
5. While computing captures for expression at [/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift:126:119 - line:187:9] RangeText="{ primitive in
let semantics: [(Mesh.Primitive.Semantic, SCNGeometrySource.Semantic?)] = [
(.POSITION, .vertex),
(.NORMAL, .normal),
(.TANGENT, .tangent),
(.TEXCOORD_0, .texcoord),
(.TEXCOORD_1, nil),
(.COLOR_0, .color),
(.JOINTS_0, nil),
(.WEIGHTS_0, nil)
]
let sources: [SCNGeometrySource] = try semantics.compactMap {
guard let accessor = try primitive.attributes[$0.0]?.resolve(in: document) else {
return nil
}
guard let scnSemantic = $0.1 else {
warning("No semantic for \($0.0)")
return nil
}
let source = try generateSCNGeometrySource(semantic: scnSemantic, from: accessor)
return source
}
var scnElement: SCNGeometryElement?
if let indicesAccessor = try primitive.indices?.resolve(in: document) {
let indicesBufferView = try indicesAccessor.bufferView!.resolve(in: document)
let indicesData = try data(for: indicesBufferView.buffer)
let primitiveType: SCNGeometryPrimitiveType
let primitiveCount: Int
switch primitive.mode {
case .TRIANGLES:
primitiveType = .triangles
primitiveCount = indicesAccessor.count / 3
default:
fatalError()
}
let bytesPerIndex: Int
switch (indicesAccessor.type, indicesAccessor.componentType) {
case (.SCALAR, .UNSIGNED_BYTE):
bytesPerIndex = MemoryLayout<UInt8>.size
case (.SCALAR, .UNSIGNED_SHORT):
bytesPerIndex = MemoryLayout<UInt16>.size
case (.SCALAR, .UNSIGNED_INT):
bytesPerIndex = MemoryLayout<UInt32>.size
default:
fatalError()
}
let indicesSubData = indicesData.subdata(in: indicesBufferView.byteOffset ..< (indicesBufferView.byteOffset + indicesBufferView.byteLength))
scnElement = SCNGeometryElement(data: indicesSubData, primitiveType: primitiveType, primitiveCount: primitiveCount, bytesPerIndex: bytesPerIndex)
}
let material = try primitive.material?.resolve(in: document)
let scnMaterial = try material.map { try generateSCNMaterial(from: $0) }
return (sources, scnElement, [scnMaterial].compactMap { $0 })
"
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x0000000107d4e9ac llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x0000000107d4cc00 llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x0000000107d4ef78 SignalHandler(int) + 292
3 libsystem_platform.dylib 0x0000000198f27584 _sigtramp + 56
4 swift-frontend 0x0000000103a46ca0 (anonymous namespace)::FindCapturedVars::checkType(swift::Type, swift::SourceLoc)::TypeCaptureWalker::walkToTypePre(swift::Type) + 56
5 swift-frontend 0x0000000103a46ca0 (anonymous namespace)::FindCapturedVars::checkType(swift::Type, swift::SourceLoc)::TypeCaptureWalker::walkToTypePre(swift::Type) + 56
6 swift-frontend 0x0000000104143fcc (anonymous namespace)::Traversal::doIt(swift::Type) + 40
7 swift-frontend 0x00000001041440a8 (anonymous namespace)::Traversal::doIt(swift::Type) + 260
8 swift-frontend 0x0000000103a44da0 (anonymous namespace)::FindCapturedVars::checkType(swift::Type, swift::SourceLoc) + 160
9 swift-frontend 0x0000000103a45af0 (anonymous namespace)::FindCapturedVars::walkToExprPre(swift::Expr*) + 1380
10 swift-frontend 0x0000000103e55220 (anonymous namespace)::Traversal::visitSelfApplyExpr(swift::SelfApplyExpr*) + 172
11 swift-frontend 0x0000000103e52660 (anonymous namespace)::Traversal::visit(swift::Expr*) + 124
12 swift-frontend 0x0000000103e550ac (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) + 88
13 swift-frontend 0x0000000103e5263c (anonymous namespace)::Traversal::visit(swift::Expr*) + 88
14 swift-frontend 0x0000000103e52dc0 (anonymous namespace)::Traversal::visitDynamicMemberRefExpr(swift::DynamicMemberRefExpr*) + 84
15 swift-frontend 0x0000000103e52754 (anonymous namespace)::Traversal::visit(swift::Expr*) + 368
16 swift-frontend 0x0000000103e57988 (anonymous namespace)::Traversal::visit(swift::Decl*) + 2964
17 swift-frontend 0x0000000103e523f4 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 324
18 swift-frontend 0x0000000103e55f24 (anonymous namespace)::Traversal::visit(swift::Stmt*) + 2612
19 swift-frontend 0x0000000103a442d0 swift::TypeChecker::computeCaptures(swift::AnyFunctionRef) + 980
20 swift-frontend 0x0000000103b6421c (anonymous namespace)::ContextualizeClosuresAndMacros::walkToExprPre(swift::Expr*) + 572
21 swift-frontend 0x0000000103e58558 (anonymous namespace)::Traversal::visit(swift::ArgumentList*) + 248
22 swift-frontend 0x0000000103e55118 (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) + 196
23 swift-frontend 0x0000000103e5263c (anonymous namespace)::Traversal::visit(swift::Expr*) + 88
24 swift-frontend 0x0000000103e52dc0 (anonymous namespace)::Traversal::visitDynamicMemberRefExpr(swift::DynamicMemberRefExpr*) + 84
25 swift-frontend 0x0000000103e52754 (anonymous namespace)::Traversal::visit(swift::Expr*) + 368
26 swift-frontend 0x0000000103e57988 (anonymous namespace)::Traversal::visit(swift::Decl*) + 2964
27 swift-frontend 0x0000000103e523f4 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 324
28 swift-frontend 0x0000000103e55f24 (anonymous namespace)::Traversal::visit(swift::Stmt*) + 2612
29 swift-frontend 0x0000000103b6143c swift::TypeCheckFunctionBodyRequest::evaluate(swift::Evaluator&, swift::AbstractFunctionDecl*) const + 1564
30 swift-frontend 0x0000000103f71fd4 swift::TypeCheckFunctionBodyRequest::OutputType swift::Evaluator::getResultUncached<swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckFunctionBodyRequest>(swift::Evaluator&, swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType)::'lambda'()>(swift::TypeCheckFunctionBodyRequest const&, swift::TypeCheckFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckFunctionBodyRequest>(swift::Evaluator&, swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType)::'lambda'()) + 636
31 swift-frontend 0x0000000103ee0b44 swift::AbstractFunctionDecl::getTypecheckedBody() const + 160
32 swift-frontend 0x0000000103baf3dc swift::TypeCheckSourceFileRequest::evaluate(swift::Evaluator&, swift::SourceFile*) const + 868
33 swift-frontend 0x0000000103bb6970 swift::TypeCheckSourceFileRequest::OutputType swift::Evaluator::getResultUncached<swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckSourceFileRequest>(swift::Evaluator&, swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType)::'lambda'()>(swift::TypeCheckSourceFileRequest const&, swift::TypeCheckSourceFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckSourceFileRequest>(swift::Evaluator&, swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType)::'lambda'()) + 620
34 swift-frontend 0x0000000103baf05c swift::performTypeChecking(swift::SourceFile&) + 328
35 swift-frontend 0x0000000102accce0 swift::CompilerInstance::performSema() + 260
36 swift-frontend 0x00000001026fa0dc performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1532
37 swift-frontend 0x00000001026f8ea0 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3572
38 swift-frontend 0x000000010267ff64 swift::mainEntry(int, char const**) + 3680
39 dyld 0x0000000198b6e0e0 start + 2360
BUILD FAILURE 6.0 macosSpm