The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Spinosis, reference 1.0.1 (74f481), with Swift 6.3 for macOS (SPM) on 4 Sep 2026 09:06:25 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ekofi/spinosis-ios.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ekofi/spinosis-ios
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 74f4810 Release 1.0.1
Cloned https://github.com/ekofi/spinosis-ios.git
Revision (git rev-parse @):
74f4810b6dfa002eadc800dab13e130681ab9408
SUCCESS checkout https://github.com/ekofi/spinosis-ios.git at 1.0.1
========================================
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": "spinosis-ios",
      "name": "Spinosis",
      "url": "https://github.com/ekofi/spinosis-ios.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/spinosis-ios",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ekofi/spinosis-ios.git
[1/17] Fetching spinosis-ios
Fetched https://github.com/ekofi/spinosis-ios.git from cache (0.69s)
Creating working copy for https://github.com/ekofi/spinosis-ios.git
Working copy of https://github.com/ekofi/spinosis-ios.git resolved at 1.0.1 (74f4810)
warning: '.resolve-product-dependencies': dependency 'spinosis-ios' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ekofi/spinosis-ios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.5.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-69A768CDF2A0BEE1.txt
[3/4] Emitting module Spinosis
[4/4] Compiling Spinosis Spinosis.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:135:5: warning: result of 'try?' is unused [#no-usage]
133 |     initialized = true
134 |
135 |     try? await post("/api/sdk/identify", body: identityPayload(), timeout: defaultTimeout)
    |     `- warning: result of 'try?' is unused [#no-usage]
136 |   }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:145:5: warning: result of 'try?' is unused [#no-usage]
143 |       mergeProperties(properties)
144 |     }
145 |     try? await post("/api/sdk/identify", body: identityPayload(), timeout: defaultTimeout)
    |     `- warning: result of 'try?' is unused [#no-usage]
146 |   }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:151:5: warning: result of 'try?' is unused [#no-usage]
149 |     guard initialized else { return }
150 |     mergeProperties(properties)
151 |     try? await post("/api/sdk/identify", body: identityPayload(), timeout: defaultTimeout)
    |     `- warning: result of 'try?' is unused [#no-usage]
152 |   }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:185:5: warning: result of 'try?' is unused [#no-usage]
183 |     body["eventName"] = eventName
184 |     body["properties"] = properties ?? [:]
185 |     try? await post("/api/sdk/events", body: body, timeout: defaultTimeout)
    |     `- warning: result of 'try?' is unused [#no-usage]
186 |   }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:218:7: error: cannot assign to value: 'payloadJSON' is a 'let' constant
214 |
215 |   private func cache(_ experimentKey: String, variant: String, payload: [String: Any]) {
216 |     let payloadJSON: Data? = nil
    |     `- note: change 'let' to 'var' to make it mutable
217 |     if JSONSerialization.isValidJSONObject(payload) {
218 |       payloadJSON = try? JSONSerialization.data(withJSONObject: payload)
    |       `- error: cannot assign to value: 'payloadJSON' is a 'let' constant
219 |     }
220 |     assignments[experimentKey] = CachedAssignment(
/Users/admin/builder/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:241:56: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 73 | }
 74 |
 75 | actor SpinosisClient {
    |       `- note: add '@available' attribute to enclosing actor
 76 |   static let shared = SpinosisClient()
 77 |
    :
229 |
230 |   @discardableResult
231 |   private func post(_ path: String, body: [String: Any], timeout: TimeInterval) async throws -> [String: Any] {
    |                `- note: add '@available' attribute to enclosing instance method
232 |     guard let apiKey else { throw URLError(.userAuthenticationRequired) }
233 |     guard let url = URL(string: "\(apiUrl)\(path)") else { throw URLError(.badURL) }
    :
239 |     request.httpBody = try JSONSerialization.data(withJSONObject: body)
240 |
241 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                        |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
    |                                                        `- note: add 'if #available' version check
242 |     guard let http = response as? HTTPURLResponse, (200 ..< 300).contains(http.statusCode) else {
243 |       throw URLError(.badServerResponse)
BUILD FAILURE 6.3 macosSpm