The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OpenPanel, reference 1.0.0 (d8181e), with Swift 6.0 for macOS (SPM) on 8 Jan 2026 08:45:18 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Openpanel-dev/swift-sdk.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Openpanel-dev/swift-sdk
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at d8181eb add better check for extensions
Cloned https://github.com/Openpanel-dev/swift-sdk.git
Revision (git rev-parse @):
d8181ebb986acce3e3bb177a93cc484241ba0414
SUCCESS checkout https://github.com/Openpanel-dev/swift-sdk.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Openpanel-dev/swift-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/4] Emitting module OpenPanel
[4/4] Compiling OpenPanel OpenPanel.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:56:22: error: cannot find 'UIDevice' in scope
 54 |
 55 |     private static func getBasicUserAgent() -> String {
 56 |         let device = UIDevice.current
    |                      `- error: cannot find 'UIDevice' in scope
 57 |         let systemVersion = device.systemVersion
 58 |         let model = device.model
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:418:81: warning: expression implicitly coerced from 'Any??' to 'Any'
416 |                     var mergedProperties = global
417 |                     if let payloadProperties = payload.properties {
418 |                         mergedProperties.merge(payloadProperties) { (_, new) in (new as AnyObject).value }
    |                                                                                 |                  |- note: force-unwrap the value to avoid this warning
    |                                                                                 |                  `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
    |                                                                                 `- warning: expression implicitly coerced from 'Any??' to 'Any'
419 |                     }
420 |                     updatedPayload.properties = mergedProperties.mapValues { AnyCodable($0) }
BUILD FAILURE 6.0 macosSpm