Build Information
Failed to build Zephyr, reference master (6a17bc
), with Swift 6.2 (beta) for Android on 21 Jun 2025 07:06:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ArtSabintsev/Zephyr.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/ArtSabintsev/Zephyr
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 6a17bcf Bump rexml from 3.2.5 to 3.2.8 (#69)
Cloned https://github.com/ArtSabintsev/Zephyr.git
Revision (git rev-parse @):
6a17bcfec8a650cc8ac3610ef2aed65fd509a945
SUCCESS checkout https://github.com/ArtSabintsev/Zephyr.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/ArtSabintsev/Zephyr.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module Zephyr
/host/spi-builder-workspace/Sources/Zephyr.swift:22:1: error: Objective-C interoperability is disabled
20 | }
21 |
22 | @objcMembers
| `- error: Objective-C interoperability is disabled
23 | public final class Zephyr: NSObject {
24 | /// A debug flag.
/host/spi-builder-workspace/Sources/Zephyr.swift:285:3: warning: 'public' modifier conflicts with extension's default access of 'private'
283 | /// - Parameters:
284 | /// - to: A `UserDefaults` suite.
285 | public static func setUserDefaultsSuite(to suite: UserDefaults) {
| `- warning: 'public' modifier conflicts with extension's default access of 'private'
286 | shared.userDefaults = suite
287 | printStatus(status: "Updated UserDefaults suite.")
/host/spi-builder-workspace/Sources/Zephyr.swift:438:94: error: cannot find type 'NSKeyValueChangeKey' in scope
436 | }
437 |
438 | public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
| `- error: cannot find type 'NSKeyValueChangeKey' in scope
439 | guard let keyPath = keyPath, let object = object, monitoredKeys.contains(keyPath) else {
440 | return
/host/spi-builder-workspace/Sources/Zephyr.swift:458:2: error: Objective-C interoperability is disabled
456 | // MARK: - Observers (Objective-C)
457 |
458 | @objc
| `- error: Objective-C interoperability is disabled
459 | extension Zephyr {
460 |
[4/4] Compiling Zephyr Zephyr.swift
/host/spi-builder-workspace/Sources/Zephyr.swift:22:1: error: Objective-C interoperability is disabled
20 | }
21 |
22 | @objcMembers
| `- error: Objective-C interoperability is disabled
23 | public final class Zephyr: NSObject {
24 | /// A debug flag.
/host/spi-builder-workspace/Sources/Zephyr.swift:285:3: warning: 'public' modifier conflicts with extension's default access of 'private'
283 | /// - Parameters:
284 | /// - to: A `UserDefaults` suite.
285 | public static func setUserDefaultsSuite(to suite: UserDefaults) {
| `- warning: 'public' modifier conflicts with extension's default access of 'private'
286 | shared.userDefaults = suite
287 | printStatus(status: "Updated UserDefaults suite.")
/host/spi-builder-workspace/Sources/Zephyr.swift:438:94: error: cannot find type 'NSKeyValueChangeKey' in scope
436 | }
437 |
438 | public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
| `- error: cannot find type 'NSKeyValueChangeKey' in scope
439 | guard let keyPath = keyPath, let object = object, monitoredKeys.contains(keyPath) else {
440 | return
/host/spi-builder-workspace/Sources/Zephyr.swift:458:2: error: Objective-C interoperability is disabled
456 | // MARK: - Observers (Objective-C)
457 |
458 | @objc
| `- error: Objective-C interoperability is disabled
459 | extension Zephyr {
460 |
/host/spi-builder-workspace/Sources/Zephyr.swift:59:16: error: cannot find 'NSUbiquitousKeyValueStore' in scope
57 | /// A session-persisted variable to directly access all of the `NSUbiquitousKeyValueStore` elements.
58 | private var zephyrRemoteStoreDictionary: [String: Any] {
59 | return NSUbiquitousKeyValueStore.default.dictionaryRepresentation
| `- error: cannot find 'NSUbiquitousKeyValueStore' in scope
60 | }
61 |
/host/spi-builder-workspace/Sources/Zephyr.swift:71:9: error: cannot find 'NSUbiquitousKeyValueStore' in scope
69 | super.init()
70 | setupNotifications()
71 | NSUbiquitousKeyValueStore.default.synchronize()
| `- error: cannot find 'NSUbiquitousKeyValueStore' in scope
72 | }
73 |
/host/spi-builder-workspace/Sources/Zephyr.swift:78:30: error: value of type 'UserDefaults' has no member 'removeObserver'
76 | zephyrQueue.sync {
77 | for key in registeredObservationKeys {
78 | userDefaults.removeObserver(self, forKeyPath: key)
| `- error: value of type 'UserDefaults' has no member 'removeObserver'
79 | }
80 | }
/host/spi-builder-workspace/Sources/Zephyr.swift:225:54: error: cannot find 'NSUbiquitousKeyValueStore' in scope
223 | private func setupNotifications() {
224 | NotificationCenter.default.addObserver(self, selector: #selector(keysDidChangeOnCloud(notification:)),
225 | name: NSUbiquitousKeyValueStore.didChangeExternallyNotification,
| `- error: cannot find 'NSUbiquitousKeyValueStore' in scope
226 | object: nil)
227 |
/host/spi-builder-workspace/Sources/Zephyr.swift:224:64: error: '#selector' can only be used with the Objective-C runtime
222 | /// Setup UIApplication and UIScene event state notifications.
223 | private func setupNotifications() {
224 | NotificationCenter.default.addObserver(self, selector: #selector(keysDidChangeOnCloud(notification:)),
| `- error: '#selector' can only be used with the Objective-C runtime
225 | name: NSUbiquitousKeyValueStore.didChangeExternallyNotification,
226 | object: nil)
/host/spi-builder-workspace/Sources/Zephyr.swift:321:31: error: cannot find 'NSUbiquitousKeyValueStore' in scope
319 | /// - value: The value that will be synchronized. Must be passed with a key, otherwise, nothing will happen.
320 | func syncToCloud(key: String? = nil, value: Any? = nil) {
321 | let ubiquitousStore = NSUbiquitousKeyValueStore.default
| `- error: cannot find 'NSUbiquitousKeyValueStore' in scope
322 | ubiquitousStore.set(Date(), forKey: ZephyrSyncKey)
323 |
/host/spi-builder-workspace/Sources/Zephyr.swift:345:13: error: cannot find 'NSUbiquitousKeyValueStore' in scope
343 | Zephyr.printKeySyncStatus(key: key, value: value, destination: .remote)
344 | } else {
345 | NSUbiquitousKeyValueStore.default.removeObject(forKey: key)
| `- error: cannot find 'NSUbiquitousKeyValueStore' in scope
346 | Zephyr.printKeySyncStatus(key: key, value: value, destination: .remote)
347 | }
/host/spi-builder-workspace/Sources/Zephyr.swift:411:26: error: value of type 'UserDefaults' has no member 'addObserver'
409 | if !registeredObservationKeys.contains(key) {
410 |
411 | userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
| `- error: value of type 'UserDefaults' has no member 'addObserver'
412 | registeredObservationKeys.append(key)
413 |
/host/spi-builder-workspace/Sources/Zephyr.swift:411:71: error: cannot infer contextual base in reference to member 'new'
409 | if !registeredObservationKeys.contains(key) {
410 |
411 | userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
| `- error: cannot infer contextual base in reference to member 'new'
412 | registeredObservationKeys.append(key)
413 |
/host/spi-builder-workspace/Sources/Zephyr.swift:411:85: error: 'nil' requires a contextual type
409 | if !registeredObservationKeys.contains(key) {
410 |
411 | userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
| `- error: 'nil' requires a contextual type
412 | registeredObservationKeys.append(key)
413 |
/host/spi-builder-workspace/Sources/Zephyr.swift:430:26: error: value of type 'UserDefaults' has no member 'removeObserver'
428 | if let index = registeredObservationKeys.firstIndex(of: key) {
429 |
430 | userDefaults.removeObserver(self, forKeyPath: key, context: nil)
| `- error: value of type 'UserDefaults' has no member 'removeObserver'
431 | registeredObservationKeys.remove(at: index)
432 |
/host/spi-builder-workspace/Sources/Zephyr.swift:430:73: error: 'nil' requires a contextual type
428 | if let index = registeredObservationKeys.firstIndex(of: key) {
429 |
430 | userDefaults.removeObserver(self, forKeyPath: key, context: nil)
| `- error: 'nil' requires a contextual type
431 | registeredObservationKeys.remove(at: index)
432 |
/host/spi-builder-workspace/Sources/Zephyr.swift:463:9: error: cannot find 'NSUbiquitousKeyValueStore' in scope
461 | /// Observation method for UIApplicationWillEnterForegroundNotification
462 | func willEnterForeground(notification: Notification) {
463 | NSUbiquitousKeyValueStore.default.synchronize()
| `- error: cannot find 'NSUbiquitousKeyValueStore' in scope
464 | }
465 |
/host/spi-builder-workspace/Sources/Zephyr.swift:468:33: error: cannot find 'NSUbiquitousKeyValueStore' in scope
466 | /// Observation method for `NSUbiquitousKeyValueStore.didChangeExternallyNotification`
467 | func keysDidChangeOnCloud(notification: Notification) {
468 | if notification.name == NSUbiquitousKeyValueStore.didChangeExternallyNotification {
| `- error: cannot find 'NSUbiquitousKeyValueStore' in scope
469 | guard let userInfo = (notification as NSNotification).userInfo,
470 | let cloudKeys = userInfo[NSUbiquitousKeyValueStoreChangedKeysKey] as? [String],
/host/spi-builder-workspace/Sources/Zephyr.swift:470:42: error: cannot find 'NSUbiquitousKeyValueStoreChangedKeysKey' in scope
468 | if notification.name == NSUbiquitousKeyValueStore.didChangeExternallyNotification {
469 | guard let userInfo = (notification as NSNotification).userInfo,
470 | let cloudKeys = userInfo[NSUbiquitousKeyValueStoreChangedKeysKey] as? [String],
| `- error: cannot find 'NSUbiquitousKeyValueStoreChangedKeysKey' in scope
471 | let remoteStoredDate = zephyrRemoteStoreDictionary[ZephyrSyncKey] as? Date else {
472 | return
BUILD FAILURE 6.2 android