Build Information
Failed to build Bunker with Swift 6.0 (beta) for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Sam-Spencer/Bunker.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Sam-Spencer/Bunker
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2d4436a Update README.md
Cloned https://github.com/Sam-Spencer/Bunker.git
Revision (git rev-parse @):
2d4436a5d1501ab8dd384babba9170f89528ff80
SUCCESS checkout https://github.com/Sam-Spencer/Bunker.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Sam-Spencer/Bunker.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-6F35C1178C84523A.txt
[8/14] Compiling Storage Store.swift
[9/14] Compiling Storage StorageData.swift
[10/14] Compiling Storage StorageDelegate.swift
[11/14] Compiling Storage Storage.swift
[12/14] Emitting module Storage
[13/14] Compiling Storage DelegatedStorage.swift
[14/14] Compiling Storage DataConvertible.swift
[15/23] Compiling Inject InjectStorage.swift
[16/23] Compiling Inject InjectError.swift
[17/23] Compiling Inject Inject.swift
[18/23] Emitting module Inject
[19/23] Compiling Keychain CryptoData.swift
[20/23] Compiling Keychain Keychain.swift
[21/23] Emitting module Keychain
[22/23] Compiling Keychain KeychainError.swift
[23/23] Compiling Keychain KeychainStorage.swift
[24/29] Compiling Singleton SingletonStorage.swift
[25/29] Compiling Singleton Singleton.swift
[26/29] Emitting module Singleton
[27/29] Emitting module UserDefault
[28/29] Compiling UserDefault UserDefault.swift
[29/29] Compiling UserDefault UserDefaultsStorage.swift
[30/36] Compiling Bunker BunkerSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/Bunker.swift:25:23: warning: static property 'stack' is not concurrency-safe because non-'Sendable' type 'Bunker' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A shared Core Data stack and manager.
19 | public class Bunker {
| `- note: class 'Bunker' does not conform to the 'Sendable' protocol
20 |
21 |
:
23 |
24 | /// Singleton for the Core Data stack and its management.
25 | public static let stack = Bunker()
| |- warning: static property 'stack' is not concurrency-safe because non-'Sendable' type 'Bunker' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stack' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// The `Bunker` delegate
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/36] Compiling Bunker BunkerResource.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/Bunker.swift:25:23: warning: static property 'stack' is not concurrency-safe because non-'Sendable' type 'Bunker' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A shared Core Data stack and manager.
19 | public class Bunker {
| `- note: class 'Bunker' does not conform to the 'Sendable' protocol
20 |
21 |
:
23 |
24 | /// Singleton for the Core Data stack and its management.
25 | public static let stack = Bunker()
| |- warning: static property 'stack' is not concurrency-safe because non-'Sendable' type 'Bunker' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stack' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// The `Bunker` delegate
[32/36] Compiling Bunker BunkerNotifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/BunkerNotifier.swift:20:75: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
13 | fileprivate var observer: Any? = nil
14 |
15 | func addObserver(_ block: @escaping (Notification) -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
16 | if self.observer == nil {
17 | self.observer = NotificationCenter.default.addObserver(forName: NSNotification.Name.NSManagedObjectContextDidSave,
18 | object: Bunker.stack.context,
19 | queue: nil,
20 | using: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
21 | }
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/Bunker.swift:25:23: warning: static property 'stack' is not concurrency-safe because non-'Sendable' type 'Bunker' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A shared Core Data stack and manager.
19 | public class Bunker {
| `- note: class 'Bunker' does not conform to the 'Sendable' protocol
20 |
21 |
:
23 |
24 | /// Singleton for the Core Data stack and its management.
25 | public static let stack = Bunker()
| |- warning: static property 'stack' is not concurrency-safe because non-'Sendable' type 'Bunker' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stack' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// The `Bunker` delegate
[33/36] Compiling Bunker Bunker.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/Bunker.swift:25:23: warning: static property 'stack' is not concurrency-safe because non-'Sendable' type 'Bunker' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A shared Core Data stack and manager.
19 | public class Bunker {
| `- note: class 'Bunker' does not conform to the 'Sendable' protocol
20 |
21 |
:
23 |
24 | /// Singleton for the Core Data stack and its management.
25 | public static let stack = Bunker()
| |- warning: static property 'stack' is not concurrency-safe because non-'Sendable' type 'Bunker' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stack' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// The `Bunker` delegate
[34/36] Emitting module Bunker
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/Bunker.swift:25:23: warning: static property 'stack' is not concurrency-safe because non-'Sendable' type 'Bunker' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A shared Core Data stack and manager.
19 | public class Bunker {
| `- note: class 'Bunker' does not conform to the 'Sendable' protocol
20 |
21 |
:
23 |
24 | /// Singleton for the Core Data stack and its management.
25 | public static let stack = Bunker()
| |- warning: static property 'stack' is not concurrency-safe because non-'Sendable' type 'Bunker' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stack' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// The `Bunker` delegate
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:27:44: error: cannot find type 'UISearchBar' in scope
25 |
26 | // UISearchBarDelegate
27 | public func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
| `- error: cannot find type 'UISearchBar' in scope
28 | text = searchText
29 | predicate = NSPredicate(format: "name contains[c] %@", searchText)
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:32:63: error: cannot find type 'UISearchBar' in scope
30 | }
31 |
32 | public func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
| `- error: cannot find type 'UISearchBar' in scope
33 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:16:41: error: cannot find type 'UISearchBarDelegate' in scope
14 | @Binding public var predicate: NSPredicate?
15 |
16 | public class Coordinator: NSObject, UISearchBarDelegate {
| `- error: cannot find type 'UISearchBarDelegate' in scope
17 |
18 | @Binding var text: String
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:41:79: error: cannot find type 'UISearchBar' in scope
39 | }
40 |
41 | public func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UISearchBar' in scope
42 | let searchBar = UISearchBar(frame: .zero)
43 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:41:37: error: cannot find type 'UIViewRepresentableContext' in scope
39 | }
40 |
41 | public func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
42 | let searchBar = UISearchBar(frame: .zero)
43 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:50:40: error: cannot find type 'UISearchBar' in scope
48 | }
49 |
50 | public func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UISearchBar' in scope
51 | uiView.text = text
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:50:62: error: cannot find type 'UIViewRepresentableContext' in scope
48 | }
49 |
50 | public func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
51 | uiView.text = text
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:11:26: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | public struct SearchBar: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 |
13 | @Binding public var text: String
[35/36] Compiling Bunker BunkerSearch.swift
[36/36] Compiling Bunker SearchBar.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:27:44: error: cannot find type 'UISearchBar' in scope
25 |
26 | // UISearchBarDelegate
27 | public func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
| `- error: cannot find type 'UISearchBar' in scope
28 | text = searchText
29 | predicate = NSPredicate(format: "name contains[c] %@", searchText)
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:32:63: error: cannot find type 'UISearchBar' in scope
30 | }
31 |
32 | public func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
| `- error: cannot find type 'UISearchBar' in scope
33 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:16:41: error: cannot find type 'UISearchBarDelegate' in scope
14 | @Binding public var predicate: NSPredicate?
15 |
16 | public class Coordinator: NSObject, UISearchBarDelegate {
| `- error: cannot find type 'UISearchBarDelegate' in scope
17 |
18 | @Binding var text: String
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:41:79: error: cannot find type 'UISearchBar' in scope
39 | }
40 |
41 | public func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UISearchBar' in scope
42 | let searchBar = UISearchBar(frame: .zero)
43 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:41:37: error: cannot find type 'UIViewRepresentableContext' in scope
39 | }
40 |
41 | public func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
42 | let searchBar = UISearchBar(frame: .zero)
43 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:50:40: error: cannot find type 'UISearchBar' in scope
48 | }
49 |
50 | public func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UISearchBar' in scope
51 | uiView.text = text
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:50:62: error: cannot find type 'UIViewRepresentableContext' in scope
48 | }
49 |
50 | public func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
51 | uiView.text = text
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:11:26: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | public struct SearchBar: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 |
13 | @Binding public var text: String
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:33:13: error: cannot find 'UIApplication' in scope
31 |
32 | public func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
33 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: cannot find 'UIApplication' in scope
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:33:55: error: cannot find 'UIResponder' in scope
31 |
32 | public func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
33 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: cannot find 'UIResponder' in scope
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:33:94: error: 'nil' requires a contextual type
31 |
32 | public func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
33 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: 'nil' requires a contextual type
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:33:105: error: 'nil' requires a contextual type
31 |
32 | public func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
33 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: 'nil' requires a contextual type
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:33:115: error: 'nil' requires a contextual type
31 |
32 | public func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
33 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: 'nil' requires a contextual type
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:42:25: error: cannot find 'UISearchBar' in scope
40 |
41 | public func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
42 | let searchBar = UISearchBar(frame: .zero)
| `- error: cannot find 'UISearchBar' in scope
43 | searchBar.delegate = context.coordinator
44 | searchBar.autocapitalizationType = .sentences
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:42:45: error: cannot infer contextual base in reference to member 'zero'
40 |
41 | public func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
42 | let searchBar = UISearchBar(frame: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
43 | searchBar.delegate = context.coordinator
44 | searchBar.autocapitalizationType = .sentences
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:44:45: error: cannot infer contextual base in reference to member 'sentences'
42 | let searchBar = UISearchBar(frame: .zero)
43 | searchBar.delegate = context.coordinator
44 | searchBar.autocapitalizationType = .sentences
| `- error: cannot infer contextual base in reference to member 'sentences'
45 | searchBar.showsCancelButton = false
46 | searchBar.showsScopeBar = false
/Users/admin/builder/spi-builder-workspace/Sources/Bunker/SearchBar.swift:59:9: error: static method 'buildExpression' requires that 'SearchBar' conform to 'View'
57 |
58 | static var previews: some View {
59 | SearchBar(text: .constant("search"), predicate: .constant(NSPredicate()))
| `- error: static method 'buildExpression' requires that 'SearchBar' conform to 'View'
60 | }
61 |
SwiftUI.ViewBuilder:3:24: note: where 'Content' = 'SearchBar'
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @resultBuilder public struct ViewBuilder {
3 | public static func buildExpression<Content>(_ content: Content) -> Content where Content : View
| `- note: where 'Content' = 'SearchBar'
4 | public static func buildBlock() -> EmptyView
5 | public static func buildBlock<Content>(_ content: Content) -> Content where Content : View
Fetching https://github.com/alexruperez/SecurePropertyStorage
[1/3604] Fetching securepropertystorage
Fetched https://github.com/alexruperez/SecurePropertyStorage from cache (3.41s)
Computing version for https://github.com/alexruperez/SecurePropertyStorage
Computed https://github.com/alexruperez/SecurePropertyStorage at 0.7.1 (0.67s)
Creating working copy for https://github.com/alexruperez/SecurePropertyStorage
Working copy of https://github.com/alexruperez/SecurePropertyStorage resolved at 0.7.1
BUILD FAILURE 6.0 macosSpm