The Swift Package Index logo.Swift Package Index

Build Information

Failed to build coreai-models, reference 0.2.0 (938d0b), with Swift 6.4 for macOS (SPM) on 26 Sep 2026 15:18:30 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/john-rocky/coreai-models.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/john-rocky/coreai-models
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 938d0b8 fix llm runner main (#90)
Cloned https://github.com/john-rocky/coreai-models.git
Revision (git rev-parse @):
938d0b8943b942ce66438b94ab017c5631d1aef4
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/john-rocky/coreai-models.git at 0.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/john-rocky/coreai-models.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Computing dependencies]
[Provisioning 39 / 46]
[Pre-planning 1 / 1064]
[Planning deferred tasks]
[175 / 442] ArgumentParserToolInfo
[208 / 442]
[219 / 447] EventSource
[222 / 447] CoreAIShared
[223 / 447] ArgumentParserToolInfo
[225 / 462]
[227 / 462] InternalCollectionsUtilities
[229 / 462] XGrammar
[233 / 514] CoreAIShared
[243 / 573]
[251 / 573] XGrammar
[255 / 573]
[265 / 573] XGrammar
[268 / 573]
[270 / 573]
[272 / 573]
[273 / 573]
[277 / 573]
[282 / 573] XGrammar
[286 / 573]
[287 / 573] XGrammar
[289 / 573] XGrammar
[290 / 573]
[292 / 573]
[295 / 573]
[299 / 573]
[301 / 573]
[304 / 573]
[306 / 573]
[308 / 573]
[313 / 573]
[315 / 573]
[317 / 573] XGrammar
[319 / 573]
[321 / 573]
[323 / 573]
[324 / 573]
[326 / 573] XGrammar
[328 / 573]
[330 / 573]
[331 / 573] CXGrammar
[332 / 573]
[333 / 573] yyjson
[336 / 573]
[339 / 584]
[347 / 584]
[354 / 584]
[363 / 584] InternalCollectionsUtilities
[367 / 584] InternalCollectionsUtilities
[378 / 584] InternalCollectionsUtilities
[383 / 584] EventSource
[384 / 584] EventSource-product
[390 / 584] Crypto
[391 / 584] Crypto-product
[392 / 584] Crypto-product
[395 / 584] CoreAIShared
[397 / 584] yyjson
[399 / 584] Crypto
[400 / 584] CoreAIShared
[411 / 584] CoreAIShared
[422 / 587]
[425 / 599] OrderedCollections
[426 / 599] OrderedCollections
[429 / 613] CoreAIImageSegmenter
[430 / 613] OrderedCollections
[433 / 613] CoreAIShared
[443 / 613] CoreAIImageSegmenter
[454 / 640]
[459 / 640]
[467 / 640] CoreAIObjectDetector
[470 / 640] CoreAIObjectDetection-product
[481 / 640] OrderedCollections
[485 / 640] OrderedCollections-product
Fetching https://github.com/mlc-ai/xgrammar
[1/29958] Fetching xgrammar
Fetched https://github.com/mlc-ai/xgrammar (4.73s)
Fetching https://github.com/huggingface/swift-transformers
Fetching https://github.com/apple/swift-argument-parser
[1/7027] Fetching swift-transformers
[564/25973] Fetching swift-transformers, swift-argument-parser
Fetched https://github.com/huggingface/swift-transformers (2.46s)
Fetched https://github.com/apple/swift-argument-parser (2.46s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.3.4 (3.08s)
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/huggingface/swift-huggingface.git
[1/2753] Fetching swift-huggingface
[2/4129] Fetching swift-huggingface, swift-jinja
[3/22691] Fetching swift-huggingface, swift-jinja, swift-crypto
[361/27590] Fetching swift-huggingface, swift-jinja, swift-crypto, yyjson
[2487/55369] Fetching swift-huggingface, swift-jinja, swift-crypto, yyjson, swift-collections
Fetched https://github.com/huggingface/swift-huggingface.git (3.29s)
[47616/52616] Fetching swift-jinja, swift-crypto, yyjson, swift-collections
Fetched https://github.com/huggingface/swift-jinja.git (3.80s)
Fetched https://github.com/ibireme/yyjson.git (3.80s)
Fetched https://github.com/apple/swift-crypto.git (3.80s)
Fetched https://github.com/apple/swift-collections.git (3.80s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (6.63s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.54s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.11.0 (0.56s)
Fetching https://github.com/mattt/EventSource.git
[1/303] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git (0.93s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.5.1 (1.52s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.56s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.1 (0.66s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (2.22s)
Fetching https://github.com/apple/swift-asn1.git
[1/1986] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (1.09s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (1.76s)
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.5.1
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.3.4
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.11.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/mlc-ai/xgrammar
Working copy of https://github.com/mlc-ai/xgrammar resolved at main (4221346)
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
/Users/admin/builder/spi-builder-workspace/swift/Sources/CoreAIShared/Runtime/NDArray+Helpers.swift:52:9: warning: variable 'view' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 50 |     _ array: inout NDArray, as type: T.Type, count: Int, using generator: (Int) -> T
 51 | ) {
 52 |     var view = array.mutableView(as: type)
    |         `- warning: variable 'view' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 53 |     view.withUnsafeMutablePointer { ptr, shape, _ in
 54 |         let capacity = shape.product
[#VariableNeverMutated]: <https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated>
error: SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/swift/Sources/CoreAIObjectDetector/ObjectDetector.swift failed with a nonzero exit code. Command line:     cd /Users/admin/builder
    builtin-SwiftPerFileCompile ObjectDetector.swift
/Users/admin/builder/spi-builder-workspace/swift/Sources/CoreAIObjectDetector/ObjectDetector.swift:208:17: warning: variable 'view' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
206 |         if descriptor.scalarType == .float16 {
207 |             #if !((os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64))
208 |             var view = imageArray.mutableView(as: Float16.self)
    |                 `- warning: variable 'view' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
209 |             for (b, image) in images.enumerated() {
210 |                 let chw = try preprocessor.preprocessCHW(cgImage: image)
/Users/admin/builder/spi-builder-workspace/swift/Sources/CoreAIObjectDetector/ObjectDetector.swift:220:17: warning: variable 'view' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
218 |             #endif
219 |         } else {
220 |             var view = imageArray.mutableView(as: Float.self)
    |                 `- warning: variable 'view' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
221 |             for (b, image) in images.enumerated() {
222 |                 let chw = try preprocessor.preprocessCHW(cgImage: image)
/Users/admin/builder/spi-builder-workspace/swift/Sources/CoreAIObjectDetector/ObjectDetector.swift:208:17: error: 'view' consumed in a loop
206 |         if descriptor.scalarType == .float16 {
207 |             #if !((os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64))
208 |             var view = imageArray.mutableView(as: Float16.self)
    |                 `- error: 'view' consumed in a loop
209 |             for (b, image) in images.enumerated() {
210 |                 let chw = try preprocessor.preprocessCHW(cgImage: image)
211 |                 view.withUnsafeMutablePointer { ptr, _, _ in
    |                      `- note: consumed here
212 |                     let slot = ptr.advanced(by: b * slotCount)
213 |                     for i in 0..<slotCount { slot[i] = Float16(chw[i]) }
/Users/admin/builder/spi-builder-workspace/swift/Sources/CoreAIObjectDetector/ObjectDetector.swift:220:17: error: 'view' consumed in a loop
218 |             #endif
219 |         } else {
220 |             var view = imageArray.mutableView(as: Float.self)
    |                 `- error: 'view' consumed in a loop
221 |             for (b, image) in images.enumerated() {
222 |                 let chw = try preprocessor.preprocessCHW(cgImage: image)
223 |                 view.withUnsafeMutablePointer { ptr, _, _ in
    |                      `- note: consumed here
224 |                     let slot = ptr.advanced(by: b * slotCount)
225 |                     chw.withUnsafeBufferPointer { src in
[#VariableNeverMutated]: <https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated>
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/swift/Sources/CoreAIObjectDetector/DetectionOutputs.swift /Users/admin/builder/spi-builder-workspace/swift/Sources/CoreAIObjectDetector/DetectionPostprocessor.swift -primary-file /Users/admin/builder/spi-builder-workspace/swift/Sources/CoreAIObjectDetector/ObjectDetector.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/coreai-models.build/Debug/CoreAIObjectDetector-t.build/Objects-normal/arm64/ObjectDetector.d -emit-const-values-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/coreai-models.build/Debug/CoreAIObjectDetector-t.build/Objects-normal/arm64/ObjectDetector.swiftconstvalues -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/coreai-models.build/Debug/CoreAIObjectDetector-t.build/Objects-normal/arm64/ObjectDetector.swiftdeps -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/coreai-models.build/Debug/CoreAIObjectDetector-t.build/Objects-normal/arm64/ObjectDetector.dia -target arm64-apple-macos27.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/coreai-models.build/Debug/CoreAIObjectDetector-t.build/Objects-normal/arm64/CoreAIObjectDetector-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftExplicitPrecompiledModules -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=5 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-upcoming-feature MemberImportVisibility -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.build/out/SDKStatCaches.noindex/macosx27.0-26A425-80c5bbf1d171475443272936d42f90a36a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/coreai-models.build/Debug/CoreAIObjectDetector-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/coreai-models.build/Debug/CoreAIObjectDetector-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/coreai-models.build/Debug/CoreAIObjectDetector-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name CoreAIObjectDetector -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/coreai-models.build/Debug/CoreAIObjectDetector-t.build/Objects-normal/arm64/CoreAIObjectDetector_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-macos27.0 -target-sdk-version 27.0 -target-sdk-name macosx27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/coreai-models.build/Debug/CoreAIObjectDetector-t.build/Objects-normal/arm64/ObjectDetector.o -debug-module-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/coreai-models.build/Debug/CoreAIObjectDetector-t.build/Objects-normal/arm64/CoreAIObjectDetector.swiftmodule -index-unit-output-path /coreai-models.build/Debug/CoreAIObjectDetector-t.build/Objects-normal/arm64/ObjectDetector.o -index-store-path /Users/admin/builder/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 macosSpm