The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-ai, reference main (46bca4), with Swift 6.1 for iOS using Xcode 16.3 on 16 Dec 2025 02:09:49 UTC.

Build Command

No build command. This typically means the build failed at an early stage where we determine the build command.

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mi12labs/SwiftAI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mi12labs/SwiftAI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 46bca4b Merge pull request #22 from mi12labs/openai-reasoning
Cloned https://github.com/mi12labs/SwiftAI.git
Revision (git rev-parse @):
46bca4bab65fe5635df716db6fb0f0262e32d852
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mi12labs/SwiftAI.git at main
========================================
Build
========================================
Selected platform:         iOS
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mi12labs/SwiftAI.git
https://github.com/mi12labs/SwiftAI.git
{
  "dependencies" : [
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "510.0.0",
            "upper_bound" : "511.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-syntax.git"
    },
    {
      "identity" : "swift-format",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "510.0.0",
            "upper_bound" : "511.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-format.git"
    },
    {
      "identity" : "openai",
      "requirement" : {
        "branch" : [
          "0.4.7"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/MacPaw/OpenAI.git"
    },
    {
      "identity" : "swift-macro-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.6.3",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-macro-testing.git"
    },
    {
      "identity" : "mlx-swift-examples",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.25.6",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ml-explore/mlx-swift-examples.git"
    },
    {
      "identity" : "swift-collections",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-collections.git"
    }
  ],
  "manifest_display_name" : "swift-ai",
  "name" : "swift-ai",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftAI",
      "targets" : [
        "SwiftAI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftAIMLX",
      "targets" : [
        "SwiftAIMLX"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftAIMacros",
      "targets" : [
        "SwiftAIMacros"
      ],
      "type" : {
        "macro" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftAITests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAITests",
      "path" : "Tests/SwiftAITests",
      "sources" : [
        "Backends/Apple/AppleOnDeviceTests.swift",
        "Backends/Apple/FoundationModelsToolAdapterTests.swift",
        "Backends/Apple/SchemaConverterTests.swift",
        "Backends/Apple/TranscriptConverterTests.swift",
        "Backends/Openai/OpenaiLLMTests.swift",
        "ChatTests.swift",
        "CrashingLLM.swift",
        "FakeLLM.swift",
        "GenerableTests.swift",
        "GuideTests.swift",
        "JsonUtils/JsonRepairTests.swift",
        "LLMTests.swift",
        "PromptTests.swift",
        "SchemaTests.swift",
        "StructuredContentTests.swift",
        "ToolTests.swift"
      ],
      "target_dependencies" : [
        "SwiftAI",
        "SwiftAILLMTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAIMacrosTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAIMacrosTests",
      "path" : "Tests/SwiftAIMacrosTests",
      "product_dependencies" : [
        "SwiftSyntaxMacrosTestSupport",
        "MacroTesting"
      ],
      "sources" : [
        "GenerableMacroTests.swift"
      ],
      "target_dependencies" : [
        "SwiftAIMacros"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAIMacros",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAIMacros",
      "path" : "Sources/SwiftAIMacros",
      "product_dependencies" : [
        "SwiftSyntaxMacros",
        "SwiftCompilerPlugin",
        "SwiftFormat"
      ],
      "product_memberships" : [
        "SwiftAI",
        "SwiftAIMLX",
        "SwiftAIMacros"
      ],
      "sources" : [
        "GenerableMacro.swift",
        "GenerableMacroError.swift",
        "GuideMacro.swift",
        "SwiftAIMacros.swift"
      ],
      "type" : "macro"
    },
    {
      "c99name" : "SwiftAIMLXTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAIMLXTests",
      "path" : "Tests/SwiftAIMLXTests",
      "sources" : [
        "MlxLLMTests.swift",
        "SchemaToJsonConvertTests.swift"
      ],
      "target_dependencies" : [
        "SwiftAIMLX",
        "SwiftAILLMTesting",
        "SwiftAI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAIMLX",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAIMLX",
      "path" : "Sources/SwiftAIMLX",
      "product_dependencies" : [
        "MLXLMCommon",
        "MLXLLM"
      ],
      "product_memberships" : [
        "SwiftAIMLX"
      ],
      "sources" : [
        "MlxConverters.swift",
        "MlxLLM.swift",
        "MlxModelManager.swift",
        "MlxSession.swift",
        "SwiftAIMLX.swift"
      ],
      "target_dependencies" : [
        "SwiftAI"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftAILLMTesting",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAILLMTesting",
      "path" : "Tests/SwiftAILLMTesting",
      "sources" : [
        "LLMBaseTestCases.swift"
      ],
      "target_dependencies" : [
        "SwiftAI",
        "SwiftAIMacros"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAI",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAI",
      "path" : "Sources/SwiftAI",
      "product_dependencies" : [
        "OpenAI",
        "OrderedCollections"
      ],
      "product_memberships" : [
        "SwiftAI",
        "SwiftAIMLX"
      ],
      "sources" : [
        "Backends/Apple/Schema+Converters.swift",
        "Backends/Apple/SystemLLM.swift",
        "Backends/Apple/SystemLLMSession.swift",
        "Backends/Apple/ToolAdapter.swift",
        "Backends/Apple/TranscriptConverters.swift",
        "Backends/Openai/OpenaiConverters.swift",
        "Backends/Openai/OpenaiLLM.swift",
        "Backends/Openai/OpenaiReplyOptions.swift",
        "Backends/Openai/OpenaiSession.swift",
        "Core/BackendReplyOptions.swift",
        "Core/Chat.swift",
        "Core/Constraint.swift",
        "Core/Generable.swift",
        "Core/LLM.swift",
        "Core/LLMError.swift",
        "Core/Message.swift",
        "Core/Model.swift",
        "Core/Prompt.swift",
        "Core/Schema.swift",
        "Core/StructuredContent.swift",
        "Core/Tool.swift",
        "JsonUtils/JsonRepair.swift",
        "SwiftAI.swift"
      ],
      "target_dependencies" : [
        "SwiftAIMacros"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Command line invocation:
    /Applications/Xcode-16.3.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Fetching from https://github.com/MacPaw/OpenAI.git
Fetching from https://github.com/pointfreeco/swift-macro-testing.git
Fetching from https://github.com/swiftlang/swift-format.git
Fetching from https://github.com/apple/swift-openapi-runtime
Fetching from https://github.com/ml-explore/mlx-swift-examples.git
Fetching from https://github.com/apple/swift-collections.git (cached)
Fetching from https://github.com/swiftlang/swift-syntax.git (cached)
Fetching from https://github.com/pointfreeco/swift-snapshot-testing (cached)
Fetching from https://github.com/apple/swift-http-types (cached)
Fetching from https://github.com/apple/swift-markdown.git
Fetching from https://github.com/apple/swift-argument-parser.git (cached)
Fetching from https://github.com/huggingface/swift-transformers
Fetching from https://github.com/ml-explore/mlx-swift
Fetching from https://github.com/1024jp/GzipSwift
Fetching from https://github.com/huggingface/swift-jinja.git
Fetching from https://github.com/apple/swift-numerics (cached)
Fetching from https://github.com/swiftlang/swift-cmark.git
Fetching from https://github.com/pointfreeco/swift-custom-dump (cached)
Fetching from https://github.com/pointfreeco/xctest-dynamic-overlay (cached)
Creating working copy of package ‘xctest-dynamic-overlay’
Checking out 1.8.0 of package ‘xctest-dynamic-overlay’
Creating working copy of package ‘OpenAI’
Checking out 0.4.7 (28884fc) of package ‘OpenAI’
Creating working copy of package ‘swift-syntax’
Checking out 510.0.3 of package ‘swift-syntax’
Creating working copy of package ‘swift-collections’
Checking out 1.3.0 of package ‘swift-collections’
Creating working copy of package ‘mlx-swift-examples’
Checking out 2.29.1 of package ‘mlx-swift-examples’
Creating working copy of package ‘swift-openapi-runtime’
Checking out 1.9.0 of package ‘swift-openapi-runtime’
Creating working copy of package ‘swift-jinja’
Checking out 2.2.0 of package ‘swift-jinja’
Creating working copy of package ‘swift-snapshot-testing’
Checking out 1.18.7 of package ‘swift-snapshot-testing’
Creating working copy of package ‘swift-macro-testing’
Checking out 0.6.4 of package ‘swift-macro-testing’
Creating working copy of package ‘swift-custom-dump’
Checking out 1.3.3 of package ‘swift-custom-dump’
Creating working copy of package ‘GzipSwift’
Checking out 6.0.1 of package ‘GzipSwift’
Creating working copy of package ‘swift-markdown’
Checking out 0.7.3 of package ‘swift-markdown’
Creating working copy of package ‘swift-format’
Checking out 510.1.0 of package ‘swift-format’
Creating working copy of package ‘swift-argument-parser’
Checking out 1.6.2 of package ‘swift-argument-parser’
Creating working copy of package ‘mlx-swift’
Checking out 0.29.1 of package ‘mlx-swift’
Creating working copy of package ‘swift-http-types’
Checking out 1.5.1 of package ‘swift-http-types’
Creating working copy of package ‘swift-cmark’
Checking out 0.7.1 of package ‘swift-cmark’
Creating working copy of package ‘swift-numerics’
Checking out 1.1.1 of package ‘swift-numerics’
Creating working copy of package ‘swift-transformers’
Checking out 1.0.0 of package ‘swift-transformers’
'swift-format' dependency on 'https://github.com/apple/swift-syntax.git' conflicts with dependency on 'https://github.com/swiftlang/swift-syntax.git' which has the same identity 'swift-syntax'. this will be escalated to an error in future versions of SwiftPM.Target “SwiftAITests” depends on a test target (“SwiftAILLMTesting”)Target “SwiftAIMLXTests” depends on a test target (“SwiftAILLMTesting”)Resolve Package Graph
'swift-format' dependency on 'https://github.com/apple/swift-syntax.git' conflicts with dependency on 'https://github.com/swiftlang/swift-syntax.git' which has the same identity 'swift-syntax'. this will be escalated to an error in future versions of SwiftPM.Target “SwiftAITests” depends on a test target (“SwiftAILLMTesting”)Target “SwiftAIMLXTests” depends on a test target (“SwiftAILLMTesting”)
Resolved source packages:
  spi-builder-workspace: (null)
2025-12-15 18:09:47.245 xcodebuild[543:3071] Writing error result bundle to /var/folders/5k/5yc19ymj0jqd5v0zvgfqz0xw0000gn/T/ResultBundle_2025-15-12_18-09-0047.xcresult
xcodebuild: error: Could not resolve package dependencies:
  Target “SwiftAITests” depends on a test target (“SwiftAILLMTesting”)
  Target “SwiftAIMLXTests” depends on a test target (“SwiftAILLMTesting”)
Command line invocation:
    /Applications/Xcode-16.3.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
'swift-format' dependency on 'https://github.com/apple/swift-syntax.git' conflicts with dependency on 'https://github.com/swiftlang/swift-syntax.git' which has the same identity 'swift-syntax'. this will be escalated to an error in future versions of SwiftPM.Target “SwiftAITests” depends on a test target (“SwiftAILLMTesting”)Target “SwiftAIMLXTests” depends on a test target (“SwiftAILLMTesting”)
Resolved source packages:
  spi-builder-workspace: (null)
2025-12-15 18:09:49.655 xcodebuild[1473:7005] Writing error result bundle to /var/folders/5k/5yc19ymj0jqd5v0zvgfqz0xw0000gn/T/ResultBundle_2025-15-12_18-09-0049.xcresult
xcodebuild: error: Could not resolve package dependencies:
  Target “SwiftAITests” depends on a test target (“SwiftAILLMTesting”)
  Target “SwiftAIMLXTests” depends on a test target (“SwiftAILLMTesting”)
BUILD FAILURE 6.1 iOS