Build Information
Failed to build Zephyr with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.33.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ArtSabintsev/Zephyr.git
Reference: 3.8.0
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
* tag 3.8.0 -> FETCH_HEAD
HEAD is now at b0dda17 Updated podspec
Cloned https://github.com/ArtSabintsev/Zephyr.git
Revision (git rev-parse @):
b0dda179006b354680b1df96e279134a704b0c06
SUCCESS checkout https://github.com/ArtSabintsev/Zephyr.git at 3.8.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $workDir
https://github.com/ArtSabintsev/Zephyr.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module Zephyr
/host/spi-builder-workspace/Sources/Zephyr.swift:22:1: error: Objective-C interoperability is disabled
@objcMembers
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:285:3: warning: 'public' modifier conflicts with extension's default access of 'private'
public static func setUserDefaultsSuite(to suite: UserDefaults) {
^
/host/spi-builder-workspace/Sources/Zephyr.swift:438:94: error: cannot find type 'NSKeyValueChangeKey' in scope
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:438:26: error: method does not override any method from its superclass
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Zephyr.swift:458:2: error: Objective-C interoperability is disabled
@objc
~^~~~
[2/2] Compiling Zephyr Zephyr.swift
/host/spi-builder-workspace/Sources/Zephyr.swift:22:1: error: Objective-C interoperability is disabled
@objcMembers
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:285:3: warning: 'public' modifier conflicts with extension's default access of 'private'
public static func setUserDefaultsSuite(to suite: UserDefaults) {
^
/host/spi-builder-workspace/Sources/Zephyr.swift:438:94: error: cannot find type 'NSKeyValueChangeKey' in scope
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:438:26: error: method does not override any method from its superclass
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Zephyr.swift:458:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:59:16: error: cannot find 'NSUbiquitousKeyValueStore' in scope
return NSUbiquitousKeyValueStore.default.dictionaryRepresentation
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:71:9: error: cannot find 'NSUbiquitousKeyValueStore' in scope
NSUbiquitousKeyValueStore.default.synchronize()
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:78:30: error: value of type 'UserDefaults' has no member 'removeObserver'
userDefaults.removeObserver(self, forKeyPath: key)
~~~~~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:225:54: error: cannot find 'NSUbiquitousKeyValueStore' in scope
name: NSUbiquitousKeyValueStore.didChangeExternallyNotification,
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:224:64: error: '#selector' can only be used with the Objective-C runtime
NotificationCenter.default.addObserver(self, selector: #selector(keysDidChangeOnCloud(notification:)),
^
/host/spi-builder-workspace/Sources/Zephyr.swift:321:31: error: cannot find 'NSUbiquitousKeyValueStore' in scope
let ubiquitousStore = NSUbiquitousKeyValueStore.default
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:345:13: error: cannot find 'NSUbiquitousKeyValueStore' in scope
NSUbiquitousKeyValueStore.default.removeObject(forKey: key)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:411:26: error: value of type 'UserDefaults' has no member 'addObserver'
userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:411:71: error: cannot infer contextual base in reference to member 'new'
userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
~^~~
/host/spi-builder-workspace/Sources/Zephyr.swift:411:85: error: 'nil' requires a contextual type
userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
^
/host/spi-builder-workspace/Sources/Zephyr.swift:430:26: error: value of type 'UserDefaults' has no member 'removeObserver'
userDefaults.removeObserver(self, forKeyPath: key, context: nil)
~~~~~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:430:73: error: 'nil' requires a contextual type
userDefaults.removeObserver(self, forKeyPath: key, context: nil)
^
/host/spi-builder-workspace/Sources/Zephyr.swift:463:9: error: cannot find 'NSUbiquitousKeyValueStore' in scope
NSUbiquitousKeyValueStore.default.synchronize()
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:468:33: error: cannot find 'NSUbiquitousKeyValueStore' in scope
if notification.name == NSUbiquitousKeyValueStore.didChangeExternallyNotification {
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:470:42: error: cannot find 'NSUbiquitousKeyValueStoreChangedKeysKey' in scope
let cloudKeys = userInfo[NSUbiquitousKeyValueStoreChangedKeysKey] as? [String],
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module Zephyr
/host/spi-builder-workspace/Sources/Zephyr.swift:22:1: error: Objective-C interoperability is disabled
@objcMembers
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:285:3: warning: 'public' modifier conflicts with extension's default access of 'private'
public static func setUserDefaultsSuite(to suite: UserDefaults) {
^
/host/spi-builder-workspace/Sources/Zephyr.swift:438:94: error: cannot find type 'NSKeyValueChangeKey' in scope
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:438:26: error: method does not override any method from its superclass
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Zephyr.swift:458:2: error: Objective-C interoperability is disabled
@objc
~^~~~
[2/2] Compiling Zephyr Zephyr.swift
/host/spi-builder-workspace/Sources/Zephyr.swift:22:1: error: Objective-C interoperability is disabled
@objcMembers
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:285:3: warning: 'public' modifier conflicts with extension's default access of 'private'
public static func setUserDefaultsSuite(to suite: UserDefaults) {
^
/host/spi-builder-workspace/Sources/Zephyr.swift:438:94: error: cannot find type 'NSKeyValueChangeKey' in scope
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:438:26: error: method does not override any method from its superclass
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Zephyr.swift:458:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:59:16: error: cannot find 'NSUbiquitousKeyValueStore' in scope
return NSUbiquitousKeyValueStore.default.dictionaryRepresentation
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:71:9: error: cannot find 'NSUbiquitousKeyValueStore' in scope
NSUbiquitousKeyValueStore.default.synchronize()
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:78:30: error: value of type 'UserDefaults' has no member 'removeObserver'
userDefaults.removeObserver(self, forKeyPath: key)
~~~~~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:225:54: error: cannot find 'NSUbiquitousKeyValueStore' in scope
name: NSUbiquitousKeyValueStore.didChangeExternallyNotification,
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:224:64: error: '#selector' can only be used with the Objective-C runtime
NotificationCenter.default.addObserver(self, selector: #selector(keysDidChangeOnCloud(notification:)),
^
/host/spi-builder-workspace/Sources/Zephyr.swift:321:31: error: cannot find 'NSUbiquitousKeyValueStore' in scope
let ubiquitousStore = NSUbiquitousKeyValueStore.default
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:345:13: error: cannot find 'NSUbiquitousKeyValueStore' in scope
NSUbiquitousKeyValueStore.default.removeObject(forKey: key)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:411:26: error: value of type 'UserDefaults' has no member 'addObserver'
userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:411:71: error: cannot infer contextual base in reference to member 'new'
userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
~^~~
/host/spi-builder-workspace/Sources/Zephyr.swift:411:85: error: 'nil' requires a contextual type
userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
^
/host/spi-builder-workspace/Sources/Zephyr.swift:430:26: error: value of type 'UserDefaults' has no member 'removeObserver'
userDefaults.removeObserver(self, forKeyPath: key, context: nil)
~~~~~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:430:73: error: 'nil' requires a contextual type
userDefaults.removeObserver(self, forKeyPath: key, context: nil)
^
/host/spi-builder-workspace/Sources/Zephyr.swift:463:9: error: cannot find 'NSUbiquitousKeyValueStore' in scope
NSUbiquitousKeyValueStore.default.synchronize()
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:468:33: error: cannot find 'NSUbiquitousKeyValueStore' in scope
if notification.name == NSUbiquitousKeyValueStore.didChangeExternallyNotification {
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:470:42: error: cannot find 'NSUbiquitousKeyValueStoreChangedKeysKey' in scope
let cloudKeys = userInfo[NSUbiquitousKeyValueStoreChangedKeysKey] as? [String],
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux