The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Commercetools, reference 0.12.3 (47da9e), with Swift 6.4 for macOS (SPM) on 18 Sep 2026 03:46:43 UTC.

Swift 6 data race errors: 0

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/commercetools/commercetools-ios-sdk.git
Reference: 0.12.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/commercetools/commercetools-ios-sdk
 * tag               0.12.3     -> FETCH_HEAD
HEAD is now at 47da9e9 Remove deprecated .swift-version file
Cloned https://github.com/commercetools/commercetools-ios-sdk.git
Revision (git rev-parse @):
47da9e9f981c9511021bd2d390b770237d901a9d
SUCCESS checkout https://github.com/commercetools/commercetools-ios-sdk.git at 0.12.3
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/commercetools/commercetools-ios-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Planning deferred tasks]
[19 / 28]
[20 / 29] Commercetools
[30 / 78]
[35 / 78]
[39 / 78]
[40 / 78]
[44 / 78]
[46 / 78]
[49 / 78]
[53 / 78]
[55 / 78]
[56 / 78]
[58 / 78]
[69 / 78] Commercetools
[70 / 78] Commercetools
[75 / 78] Commercetools
Build complete! (11.03 sec)
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Source/Info-tvOS.plist
    /Users/admin/builder/spi-builder-workspace/Source/Info.plist
/Users/admin/builder/spi-builder-workspace/Source/Endpoint.swift:191:13: warning: capture of 'self' with non-Sendable type 'Self.Type' in a '@Sendable' closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
189 |     static func perform<T>(request: URLRequest, result: @escaping (Result<T>) -> Void) {
190 |         urlSession.dataTask(with: request, completionHandler: { data, response, error in
191 |             self.handleResponse(data: data, response: response, error: error) { (res: Result<T>) in
    |             `- warning: capture of 'self' with non-Sendable type 'Self.Type' in a '@Sendable' closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
192 |                 if res.errors?.contains(where: { ($0 as? CTError) == CTError.invalidToken }) == true {
193 |                     AuthManager.sharedInstance.recoverFromInvalidTokenError { newToken, error in
/Users/admin/builder/spi-builder-workspace/Source/Endpoint.swift:196:29: warning: capture of 'self' with non-Sendable type 'Self.Type' in an isolated closure
194 |                         if let newToken = newToken {
195 |                             var updatedRequest = request
196 |                             self.headers(newToken).forEach {
    |                             `- warning: capture of 'self' with non-Sendable type 'Self.Type' in an isolated closure
197 |                                 updatedRequest.setValue($0.value, forHTTPHeaderField: $0.key)
198 |                             }
/Users/admin/builder/spi-builder-workspace/Source/Endpoint.swift:196:29: warning: capture of 'self' with non-Sendable type 'Self.Type' in an isolated closure
194 |                         if let newToken = newToken {
195 |                             var updatedRequest = request
196 |                             self.headers(newToken).forEach {
    |                             `- warning: capture of 'self' with non-Sendable type 'Self.Type' in an isolated closure
197 |                                 updatedRequest.setValue($0.value, forHTTPHeaderField: $0.key)
198 |                             }
/Users/admin/builder/spi-builder-workspace/Source/Endpoint.swift:200:33: warning: capture of 'self' with non-Sendable type 'Self.Type' in a '@Sendable' closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
198 |                             }
199 |                             DispatchQueue.global().async {
200 |                                 self.perform(request: updatedRequest, result: result)
    |                                 `- warning: capture of 'self' with non-Sendable type 'Self.Type' in a '@Sendable' closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
201 |                             }
202 |                         } else {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/Users/admin/builder/spi-builder-workspace/Source/TokenStore.swift:226:34: warning: 'unarchiveObject(with:)' was deprecated in macOS 10.14: Use +unarchivedObjectOfClass:fromData:error: instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
224 |         }
225 |
226 |         return NSKeyedUnarchiver.unarchiveObject(with: keychainData) as? NSCoding
    |                                  `- warning: 'unarchiveObject(with:)' was deprecated in macOS 10.14: Use +unarchivedObjectOfClass:fromData:error: instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
227 |     }
228 |
/Users/admin/builder/spi-builder-workspace/Source/TokenStore.swift:248:40: warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
246 |     private func setObject(_ value: NSCoding?, forKey keyName: String) {
247 |         if let value = value {
248 |             let data = NSKeyedArchiver.archivedData(withRootObject: value)
    |                                        `- warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
249 |             setData(data, forKey: keyName)
250 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Commercetools",
  "name" : "Commercetools",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Commercetools",
      "targets" : [
        "Commercetools"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Commercetools",
      "module_type" : "SwiftTarget",
      "name" : "Commercetools",
      "path" : "Source",
      "product_memberships" : [
        "Commercetools"
      ],
      "sources" : [
        "AuthManager.swift",
        "ByIdEndpoint.swift",
        "ByKeyEndpoint.swift",
        "CTError.swift",
        "Cart.swift",
        "Category.swift",
        "CategoryRecommendations.swift",
        "Commercetools.swift",
        "Config.swift",
        "CreateEndpoint.swift",
        "Customer.swift",
        "DeleteEndpoint.swift",
        "Endpoint.swift",
        "GraphQL.swift",
        "Log.swift",
        "Models.swift",
        "Order.swift",
        "Payment.swift",
        "ProductProjection.swift",
        "ProductType.swift",
        "QueryEndpoint.swift",
        "Result.swift",
        "ShippingMethod.swift",
        "ShoppingList.swift",
        "SimilarProducts.swift",
        "Store.swift",
        "TokenStore.swift",
        "UpdateByKeyEndpoint.swift",
        "UpdateEndpoint.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.