The Swift Package Index logo.Swift Package Index

Build Information

Successful build of OpenAI, reference main (da6223), with Swift 6.3 for macOS (SPM) on 18 Apr 2026 19:27:14 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Recouse/OpenAI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Recouse/OpenAI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at da6223c Update swift-log to version 1.10.1
Cloned https://github.com/Recouse/OpenAI.git
Revision (git rev-parse @):
da6223c56c66a04ebc0a6fbc6d851b8384a7e6f3
SUCCESS checkout https://github.com/Recouse/OpenAI.git at main
Fetching https://github.com/mattt/JSONSchema.git
Fetching https://github.com/Recouse/EventSource.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-collections.git
[1/192] Fetching jsonschema
[144/1013] Fetching jsonschema, eventsource
[382/7648] Fetching jsonschema, eventsource, swift-log
[934/31217] Fetching jsonschema, eventsource, swift-log, swift-collections
Fetched https://github.com/apple/swift-log.git from cache (2.19s)
Fetched https://github.com/apple/swift-collections.git from cache (2.19s)
Fetched https://github.com/mattt/JSONSchema.git from cache (2.19s)
Fetched https://github.com/Recouse/EventSource.git from cache (2.19s)
Creating working copy for https://github.com/Recouse/EventSource.git
Creating working copy for https://github.com/mattt/JSONSchema.git
Creating working copy for https://github.com/apple/swift-collections.git
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/mattt/JSONSchema.git resolved at 1.3.1
Working copy of https://github.com/Recouse/EventSource.git resolved at 0.1.7
Working copy of https://github.com/apple/swift-log.git resolved at 1.10.1
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
========================================
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",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "openai",
      "name": "OpenAI",
      "url": "https://github.com/Recouse/OpenAI.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OpenAI",
      "traits": [
        "default"
      ],
      "dependencies": [
        {
          "identity": "eventsource",
          "name": "EventSource",
          "url": "https://github.com/Recouse/EventSource.git",
          "version": "0.1.7",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EventSource",
          "traits": [
            "default"
          ],
          "dependencies": [
          ]
        },
        {
          "identity": "jsonschema",
          "name": "JSONSchema",
          "url": "https://github.com/mattt/JSONSchema.git",
          "version": "1.3.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/JSONSchema",
          "traits": [
            "default"
          ],
          "dependencies": [
            {
              "identity": "swift-collections",
              "name": "swift-collections",
              "url": "https://github.com/apple/swift-collections.git",
              "version": "1.4.1",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
              "traits": [
              ],
              "dependencies": [
              ]
            }
          ]
        },
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log.git",
          "version": "1.12.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "traits": [
          ],
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Recouse/OpenAI.git
[1/706] Fetching openai
Fetched https://github.com/Recouse/OpenAI.git from cache (0.83s)
Fetching https://github.com/Recouse/EventSource.git from cache
Fetching https://github.com/mattt/JSONSchema.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.57s)
Fetched https://github.com/Recouse/EventSource.git from cache (0.58s)
Fetched https://github.com/mattt/JSONSchema.git from cache (0.58s)
Computing version for https://github.com/mattt/JSONSchema.git
Computed https://github.com/mattt/JSONSchema.git at 1.3.1 (1.17s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.50s)
Computing version for https://github.com/Recouse/EventSource.git
Computed https://github.com/Recouse/EventSource.git at 0.1.7 (0.97s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.53s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.69s)
Creating working copy for https://github.com/Recouse/OpenAI.git
Working copy of https://github.com/Recouse/OpenAI.git resolved at main (da6223c)
Creating working copy for https://github.com/Recouse/EventSource.git
Working copy of https://github.com/Recouse/EventSource.git resolved at 0.1.7
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Creating working copy for https://github.com/mattt/JSONSchema.git
Working copy of https://github.com/mattt/JSONSchema.git resolved at 1.3.1
warning: '.resolve-product-dependencies': dependency 'openai' is not used by any target
Found 3 product dependencies
  - EventSource
  - JSONSchema
  - swift-log
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/Recouse/OpenAI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version--6988338F2F200930.txt
[8/39] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[9/40] Emitting module InternalCollectionsUtilities
[10/40] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[11/40] Compiling InternalCollectionsUtilities Integer rank.swift
[12/40] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[13/40] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[14/40] Compiling InternalCollectionsUtilities Descriptions.swift
[15/40] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[16/40] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[17/40] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[18/40] Compiling InternalCollectionsUtilities Debugging.swift
[19/40] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[20/40] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[21/40] Compiling InternalCollectionsUtilities UInt+reversed.swift
[22/40] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[23/40] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[24/40] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[25/40] Compiling InternalCollectionsUtilities _SortedCollection.swift
[26/96] Compiling OrderedCollections OrderedSet+Codable.swift
[27/96] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[28/96] Compiling OrderedCollections OrderedSet+Descriptions.swift
[29/96] Compiling OrderedCollections OrderedSet+Diffing.swift
[30/96] Compiling OrderedCollections OrderedSet+Equatable.swift
[31/96] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[32/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[33/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[34/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[35/102] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[36/102] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[37/102] Compiling OrderedCollections OrderedSet+Sendable.swift
[38/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[39/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[40/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[41/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[42/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[43/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[44/102] Compiling OrderedCollections OrderedDictionary+Elements.swift
[45/102] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[46/102] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[47/102] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[48/102] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[49/102] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[50/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[51/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[52/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[53/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[54/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[55/102] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[56/102] Compiling OrderedCollections OrderedSet+Hashable.swift
[57/102] Compiling OrderedCollections OrderedSet+Initializers.swift
[58/102] Compiling OrderedCollections OrderedSet+Insertions.swift
[59/102] Compiling OrderedCollections OrderedSet+Invariants.swift
[60/102] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[61/102] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[62/102] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[63/102] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[64/102] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[65/102] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[66/102] Compiling OrderedCollections OrderedDictionary+Values.swift
[67/102] Compiling OrderedCollections OrderedDictionary.swift
[68/102] Compiling OrderedCollections _Hashtable+Header.swift
[69/102] Compiling OrderedCollections OrderedDictionary+Codable.swift
[70/102] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[71/102] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[72/102] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[73/102] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[74/102] Compiling OrderedCollections _HashTable+Bucket.swift
[75/102] Compiling OrderedCollections _HashTable+BucketIterator.swift
[76/102] Compiling OrderedCollections _HashTable+Constants.swift
[77/102] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[78/102] Compiling OrderedCollections _HashTable+Testing.swift
[79/102] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[80/102] Compiling OrderedCollections _HashTable.swift
[81/102] Compiling OrderedCollections OrderedSet+SubSequence.swift
[82/102] Compiling OrderedCollections OrderedSet+Testing.swift
[83/102] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[84/102] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[85/102] Compiling OrderedCollections OrderedSet.swift
[86/102] Compiling OrderedCollections _UnsafeBitset.swift
[87/102] Compiling Logging Logging.swift
[88/102] Emitting module Logging
[89/102] Compiling Logging Locks.swift
[90/102] Compiling Logging LogHandler.swift
[91/102] Compiling Logging MetadataProvider.swift
[92/102] Emitting module OrderedCollections
[93/105] Compiling EventSource Mutex.swift
[94/105] Compiling EventSource Headers.swift
[95/105] Compiling EventSource SessionDelegate.swift
[96/105] Compiling EventSource ServerEvent.swift
[97/105] Compiling EventSource Extensions.swift
[98/105] Compiling EventSource EventSourceError.swift
[99/105] Compiling EventSource EventParser.swift
[100/105] Emitting module EventSource
[101/105] Compiling EventSource Data+Trim.swift
[102/105] Compiling EventSource EventSource.swift
[103/105] Compiling JSONSchema JSONSchema.swift
[104/105] Compiling JSONSchema JSONValue.swift
[105/105] Emitting module JSONSchema
[106/145] Compiling OpenAI ResponseError.swift
[107/145] Compiling OpenAI Role.swift
[108/145] Compiling OpenAI ServiceTier.swift
[109/145] Compiling OpenAI TruncationStrategy.swift
[110/149] Compiling OpenAI Effort.swift
[111/149] Compiling OpenAI FinishReason.swift
[112/149] Compiling OpenAI Modality.swift
[113/149] Compiling OpenAI Prompt.swift
[114/149] Compiling OpenAI ReponseFormat.swift
[115/149] Compiling OpenAI ModelsRequest.swift
[116/149] Compiling OpenAI ModelsResponse.swift
[117/149] Compiling OpenAI ModelsWrapper.swift
[118/149] Compiling OpenAI OpenAI.swift
[119/149] Compiling OpenAI JSONEncoder.swift
[120/149] Compiling OpenAI OpenAIError.swift
[121/149] Compiling OpenAI PlatformLogger.swift
[122/149] Compiling OpenAI Model.swift
[123/149] Compiling OpenAI CompletionsWrapper.swift
[124/149] Compiling OpenAI Configuration.swift
[125/149] Compiling OpenAI APIError.swift
[126/149] Compiling OpenAI JSONDecoder.swift
[127/149] Compiling OpenAI AudioFormat.swift
[128/149] Compiling OpenAI AudioRequest.swift
[129/149] Compiling OpenAI AudioResponse.swift
[130/149] Compiling OpenAI AudioVoice.swift
[131/149] Compiling OpenAI Content.swift
[132/149] Compiling OpenAI CompletionResponse.swift
[133/149] Compiling OpenAI Completions.swift
[134/149] Compiling OpenAI CompletionsBody.swift
[135/149] Compiling OpenAI CompletionsRequest.swift
[136/149] Emitting module OpenAI
[137/149] Compiling OpenAI BaseRequestHandler.swift
[138/149] Compiling OpenAI RequestHandler.swift
[139/149] Compiling OpenAI Request.swift
[140/149] Compiling OpenAI Responses.swift
[141/149] Compiling OpenAI ChatCompletions.swift
[142/149] Compiling OpenAI ChatCompletionsBody.swift
[143/149] Compiling OpenAI ChatCompletionsRequest.swift
[144/149] Compiling OpenAI ChatCompletionsResponse.swift
[145/149] Compiling OpenAI ChatWrapper.swift
[146/149] Compiling OpenAI ResponsesBody.swift
[147/149] Compiling OpenAI ResponsesRequest.swift
[148/149] Compiling OpenAI ResponsesResponse.swift
[149/149] Compiling OpenAI ResponsesWrapper.swift
Build complete! (8.04s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "eventsource",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.5",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Recouse/EventSource.git"
    },
    {
      "identity" : "jsonschema",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mattt/JSONSchema.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.4",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "OpenAI",
  "name" : "OpenAI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenAI",
      "targets" : [
        "OpenAI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenAITests",
      "module_type" : "SwiftTarget",
      "name" : "OpenAITests",
      "path" : "Tests/OpenAITests",
      "sources" : [
        "OpenAITests.swift"
      ],
      "target_dependencies" : [
        "OpenAI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenAI",
      "module_type" : "SwiftTarget",
      "name" : "OpenAI",
      "path" : "Sources/OpenAI",
      "product_dependencies" : [
        "EventSource",
        "JSONSchema",
        "Logging"
      ],
      "product_memberships" : [
        "OpenAI"
      ],
      "sources" : [
        "Chat/ChatCompletions.swift",
        "Chat/ChatCompletionsBody.swift",
        "Chat/ChatCompletionsRequest.swift",
        "Chat/ChatCompletionsResponse.swift",
        "Chat/ChatWrapper.swift",
        "Common/Audio/AudioFormat.swift",
        "Common/Audio/AudioRequest.swift",
        "Common/Audio/AudioResponse.swift",
        "Common/Audio/AudioVoice.swift",
        "Common/Content.swift",
        "Common/Effort.swift",
        "Common/FinishReason.swift",
        "Common/Modality.swift",
        "Common/Prompt.swift",
        "Common/ReponseFormat.swift",
        "Common/ResponseError.swift",
        "Common/Role.swift",
        "Common/ServiceTier.swift",
        "Common/TruncationStrategy.swift",
        "Completions/CompletionResponse.swift",
        "Completions/Completions.swift",
        "Completions/CompletionsBody.swift",
        "Completions/CompletionsRequest.swift",
        "Completions/CompletionsWrapper.swift",
        "Configuration.swift",
        "Extensions/APIError.swift",
        "Extensions/JSONDecoder.swift",
        "Extensions/JSONEncoder.swift",
        "Extensions/OpenAIError.swift",
        "Logger/PlatformLogger.swift",
        "Model.swift",
        "Models/ModelsRequest.swift",
        "Models/ModelsResponse.swift",
        "Models/ModelsWrapper.swift",
        "OpenAI.swift",
        "Request/Handler/BaseRequestHandler.swift",
        "Request/Handler/RequestHandler.swift",
        "Request/Request.swift",
        "Responses/Responses.swift",
        "Responses/ResponsesBody.swift",
        "Responses/ResponsesRequest.swift",
        "Responses/ResponsesResponse.swift",
        "Responses/ResponsesWrapper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
Done.