Build Information
Failed to build SwiftUIContactPicker, reference 1.1.0 (7a7a91), with Swift 6.2 for macOS (SPM) on 18 Jun 2025 21:23:45 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pykaso/SwiftUI_ContactPicker.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pykaso/SwiftUI_ContactPicker
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at 7a7a914 Merge branch 'main' of github.com:pykaso/SwiftUI_ContactPicker into main
Cloned https://github.com/pykaso/SwiftUI_ContactPicker.git
Revision (git rev-parse @):
7a7a914cd5cab5d91135d1c2b3b497b3e44fc029
SUCCESS checkout https://github.com/pykaso/SwiftUI_ContactPicker.git at 1.1.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/pykaso/SwiftUI_ContactPicker.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Copying Media.xcassets
[2/3] Write swift-version-1EA4D86E10B52AF.txt
[4/12] Compiling SwiftUIContactPicker resource_bundle_accessor.swift
[5/12] Compiling SwiftUIContactPicker ContactPickerHeaderView.swift
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:4:6: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ContactPickerHeader: View {
| `- note: add @available attribute to enclosing struct
4 | @Binding var text: String
| `- error: 'Binding' is only available in macOS 10.15 or newer
5 | public let onCancel: (() -> Void)?
6 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ContactPickerHeader: View {
| `- note: add @available attribute to enclosing struct
4 | @Binding var text: String
5 | public let onCancel: (() -> Void)?
6 |
7 | @State private var showCancelButton: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
8 |
9 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:9:27: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ContactPickerHeader: View {
| `- note: add @available attribute to enclosing struct
4 | @Binding var text: String
5 | public let onCancel: (() -> Void)?
:
7 | @State private var showCancelButton: Bool = false
8 |
9 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
10 | VStack(spacing: 0) {
11 | if !showCancelButton {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:82:48: error: 'View' is only available in macOS 10.15 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:62:25: error: cannot find 'UIApplication' in scope
60 | text = ""
61 | //showCancelButton = false
62 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: cannot find 'UIApplication' in scope
63 | })
64 | .accentColor(Color.Theme.primaryTint)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:62:67: error: cannot find 'UIResponder' in scope
60 | text = ""
61 | //showCancelButton = false
62 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: cannot find 'UIResponder' in scope
63 | })
64 | .accentColor(Color.Theme.primaryTint)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:62:106: error: 'nil' requires a contextual type
60 | text = ""
61 | //showCancelButton = false
62 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: 'nil' requires a contextual type
63 | })
64 | .accentColor(Color.Theme.primaryTint)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:62:117: error: 'nil' requires a contextual type
60 | text = ""
61 | //showCancelButton = false
62 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: 'nil' requires a contextual type
63 | })
64 | .accentColor(Color.Theme.primaryTint)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:62:127: error: 'nil' requires a contextual type
60 | text = ""
61 | //showCancelButton = false
62 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: 'nil' requires a contextual type
63 | })
64 | .accentColor(Color.Theme.primaryTint)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:83:9: error: 'ZStack' is only available in macOS 10.15 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | if showPlaceHolder {
85 | Text(placeholder)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:83:28: error: 'leading' is only available in macOS 10.15 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | if showPlaceHolder {
85 | Text(placeholder)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:85:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
85 | Text(placeholder)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
86 | .font(.system(size: 17, weight: .regular, design: .default))
87 | .foregroundColor(Color.gray)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:85:17: error: 'Text' is only available in macOS 10.15 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
85 | Text(placeholder)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | .font(.system(size: 17, weight: .regular, design: .default))
87 | .foregroundColor(Color.gray)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:86:22: error: 'font' is only available in macOS 10.15 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
85 | Text(placeholder)
86 | .font(.system(size: 17, weight: .regular, design: .default))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | .foregroundColor(Color.gray)
88 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:86:28: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
85 | Text(placeholder)
86 | .font(.system(size: 17, weight: .regular, design: .default))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
87 | .foregroundColor(Color.gray)
88 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:87:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
85 | Text(placeholder)
86 | .font(.system(size: 17, weight: .regular, design: .default))
87 | .foregroundColor(Color.gray)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | content
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:87:38: error: 'Color' is only available in macOS 10.15 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
85 | Text(placeholder)
86 | .font(.system(size: 17, weight: .regular, design: .default))
87 | .foregroundColor(Color.gray)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | content
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:87:44: error: 'gray' is only available in macOS 10.15 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
85 | Text(placeholder)
86 | .font(.system(size: 17, weight: .regular, design: .default))
87 | .foregroundColor(Color.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | content
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:84:32: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
85 | Text(placeholder)
86 | .font(.system(size: 17, weight: .regular, design: .default))
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:84:32: error: 'buildIf' is only available in macOS 10.15 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | Text(placeholder)
86 | .font(.system(size: 17, weight: .regular, design: .default))
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:88:13: error: 'buildIf' is only available in macOS 10.15 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
:
86 | .font(.system(size: 17, weight: .regular, design: .default))
87 | .foregroundColor(Color.gray)
88 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | content
90 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:83:37: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
84 | if showPlaceHolder {
85 | Text(placeholder)
[6/12] Compiling SwiftUIContactPicker PhoneContact.swift
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/PhoneContact.swift:33:27: error: cannot find type 'CNContact' in scope
31 | public var phoneNumber: [String] = [String]()
32 | public var email: [String] = [String]()
33 | public var cnContact: CNContact?
| `- error: cannot find type 'CNContact' in scope
34 |
35 | public var name: String? {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/PhoneContact.swift:50:19: error: cannot find type 'CNContact' in scope
48 | }
49 |
50 | init(contact: CNContact) {
| `- error: cannot find type 'CNContact' in scope
51 | id = contact.identifier
52 | givenName = contact.givenName
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/PhoneContact.swift:73:11: error: cannot find type 'CNContact' in scope
71 |
72 |
73 | extension CNContact {
| `- error: cannot find type 'CNContact' in scope
74 | var fullName: String {
75 | let safeName = [self.givenName, self.middleName , self.familyName].compactMap({ $0 }).joined(separator: " ")
[7/12] Compiling SwiftUIContactPicker CompactContactRow.swift
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:4:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
| `- error: 'State' is only available in macOS 10.15 or newer
5 |
6 | public init(contact: PhoneContact) {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:10:27: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:7:25: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
6 | public init(contact: PhoneContact) {
| `- note: add @available attribute to enclosing initializer
7 | self._contact = State<PhoneContact>(wrappedValue: contact)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:11:9: error: 'HStack' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:14:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
14 | Text(gn).bold()
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
15 | } else {
16 | Text(gn)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:14:21: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
14 | Text(gn).bold()
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | } else {
16 | Text(gn)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:14:30: error: 'bold()' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
14 | Text(gn).bold()
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | } else {
16 | Text(gn)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:13:87: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
14 | Text(gn).bold()
15 | } else {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:13:87: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | Text(gn).bold()
15 | } else {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:16:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
14 | Text(gn).bold()
15 | } else {
16 | Text(gn)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | }
18 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:16:21: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
14 | Text(gn).bold()
15 | } else {
16 | Text(gn)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | }
18 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:15:24: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
14 | Text(gn).bold()
15 | } else {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
16 | Text(gn)
17 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:15:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
14 | Text(gn).bold()
15 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Text(gn)
17 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:12:43: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
14 | Text(gn).bold()
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:12:43: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
14 | Text(gn).bold()
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:18:13: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
16 | Text(gn)
17 | }
18 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | if let mn = contact.middleName {
20 | Text(mn)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:20:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
18 | }
19 | if let mn = contact.middleName {
20 | Text(mn)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
21 | }
22 | if let fn = contact.familyName {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:20:17: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
18 | }
19 | if let mn = contact.middleName {
20 | Text(mn)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | }
22 | if let fn = contact.familyName {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:19:44: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
17 | }
18 | }
19 | if let mn = contact.middleName {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
20 | Text(mn)
21 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:19:44: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
17 | }
18 | }
19 | if let mn = contact.middleName {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Text(mn)
21 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:21:13: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
19 | if let mn = contact.middleName {
20 | Text(mn)
21 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | if let fn = contact.familyName {
23 | Text(fn).bold()
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:23:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
21 | }
22 | if let fn = contact.familyName {
23 | Text(fn).bold()
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
24 | }
25 | if let ns = contact.nameSuffix {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:23:17: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
21 | }
22 | if let fn = contact.familyName {
23 | Text(fn).bold()
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | if let ns = contact.nameSuffix {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:23:26: error: 'bold()' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
21 | }
22 | if let fn = contact.familyName {
23 | Text(fn).bold()
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | if let ns = contact.nameSuffix {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:22:44: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
20 | Text(mn)
21 | }
22 | if let fn = contact.familyName {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
23 | Text(fn).bold()
24 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:22:44: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
20 | Text(mn)
21 | }
22 | if let fn = contact.familyName {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Text(fn).bold()
24 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:24:13: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
22 | if let fn = contact.familyName {
23 | Text(fn).bold()
24 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | if let ns = contact.nameSuffix {
26 | Text(ns)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:26:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
24 | }
25 | if let ns = contact.nameSuffix {
26 | Text(ns)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
27 | }
28 | Spacer()
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:26:17: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
24 | }
25 | if let ns = contact.nameSuffix {
26 | Text(ns)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 | Spacer()
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:25:44: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
23 | Text(fn).bold()
24 | }
25 | if let ns = contact.nameSuffix {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
26 | Text(ns)
27 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:25:44: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
23 | Text(fn).bold()
24 | }
25 | if let ns = contact.nameSuffix {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | Text(ns)
27 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:27:13: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
25 | if let ns = contact.nameSuffix {
26 | Text(ns)
27 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | Spacer()
29 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:28:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
26 | Text(ns)
27 | }
28 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:28:13: error: 'Spacer' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
:
26 | Text(ns)
27 | }
28 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:11:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:11:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:11:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:11:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:11:28: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
12 | if let gn = contact.givenName {
13 | if contact.familyName == nil || contact.familyName?.isEmpty ?? false {
[8/12] Compiling SwiftUIContactPicker Color+Extensions.swift
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:6:38: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
8 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:6:46: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
8 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:6:46: error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
| | `- error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
8 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:7:33: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:7:41: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:7:41: error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
| | `- error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:4:11: error: 'Color' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
5 | enum Theme {
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/12] Emitting module SwiftUIContactPicker
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:5:6: error: 'Binding' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
| `- error: 'Binding' is only available in macOS 10.15 or newer
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
7 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:6:6: error: 'StateObject' is only available in macOS 11.0 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
| `- error: 'StateObject' is only available in macOS 11.0 or newer
7 |
8 | public init(
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:10:26: error: 'Binding' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
7 |
8 | public init(
| `- note: add @available attribute to enclosing initializer
9 | viewModel: ContactPickerViewModel,
10 | selectedContact: Binding<PhoneContact?>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
11 | rowBuilder: ((PhoneContact, ContactListView) -> AnyView)? = nil,
12 | onCancel: (() -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:11:57: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
7 |
8 | public init(
| `- note: add @available attribute to enclosing initializer
9 | viewModel: ContactPickerViewModel,
10 | selectedContact: Binding<PhoneContact?>,
11 | rowBuilder: ((PhoneContact, ContactListView) -> AnyView)? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
12 | onCancel: (() -> Void)? = nil
13 | ) {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:26:79: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
:
24 | }
25 |
26 | let rowBuilder: (_ contact: PhoneContact, _ listView: ContactListView) -> AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
27 | let onCancel: (() -> Void)?
28 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
:
27 | let onCancel: (() -> Void)?
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | VStack(alignment: .center, spacing: 0) {
31 | ContactPickerHeader(text: $viewModel.query, onCancel: onCancel)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:71:31: error: 'View' is only available in macOS 10.15 or newer
67 | }
68 |
69 | struct ContactListView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
70 | static let vm = ContactPickerViewModel(store: StubContactStore())
71 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
72 | ContactListView(viewModel: vm, selectedContact: Binding.constant(nil)) { contact, _ in
73 | AnyView(CompactContactRow(contact: contact))
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:18:6: error: 'Published' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
18 | @Published public var selectedContact: PhoneContact?
| `- error: 'Published' is only available in macOS 10.15 or newer
19 | @Published public var rows: [PhoneContact] = []
20 | @Published public var groups: [Group] = []
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:19:6: error: 'Published' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
18 | @Published public var selectedContact: PhoneContact?
19 | @Published public var rows: [PhoneContact] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
20 | @Published public var groups: [Group] = []
21 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:20:6: error: 'Published' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
18 | @Published public var selectedContact: PhoneContact?
19 | @Published public var rows: [PhoneContact] = []
20 | @Published public var groups: [Group] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
21 |
22 | var query: String = "" {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:33:33: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
31 | let onlyWithPhoneNumber: Bool
32 |
33 | private let searchSubject = PassthroughSubject<String, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
34 |
35 | private var searchCancellable: Cancellable!
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:35:36: error: 'Cancellable' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
33 | private let searchSubject = PassthroughSubject<String, Never>()
34 |
35 | private var searchCancellable: Cancellable!
| `- error: 'Cancellable' is only available in macOS 10.15 or newer
36 |
37 | deinit {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:6:38: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
8 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:6:46: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
8 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:6:46: error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
| | `- error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
8 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:7:33: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:7:41: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:7:41: error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
3 |
4 | extension Color {
5 | enum Theme {
| `- note: add @available attribute to enclosing enum
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
7 | static var primaryTint: Color = Color("primaryTint", bundle: Bundle.module)
| | `- error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Extensions/Color+Extensions.swift:4:11: error: 'Color' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
5 | enum Theme {
6 | static let headerBackground: Color = Color("headerBackground", bundle: Bundle.module)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:29:28: error: cannot find type 'CNContact' in scope
27 | }
28 |
29 | func getContacts() -> [CNContact] {
| `- error: cannot find type 'CNContact' in scope
30 | let contactStore = CNContactStore()
31 | let keysToFetch = [
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:8:28: error: 'ObservableObject' is only available in macOS 10.15 or newer
6 | }
7 |
8 | public class ContactStore: ObservableObject, ContactStoreProvider {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
9 | var contacts: [PhoneContact] = []
10 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/PhoneContact.swift:33:27: error: cannot find type 'CNContact' in scope
31 | public var phoneNumber: [String] = [String]()
32 | public var email: [String] = [String]()
33 | public var cnContact: CNContact?
| `- error: cannot find type 'CNContact' in scope
34 |
35 | public var name: String? {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/PhoneContact.swift:50:19: error: cannot find type 'CNContact' in scope
48 | }
49 |
50 | init(contact: CNContact) {
| `- error: cannot find type 'CNContact' in scope
51 | id = contact.identifier
52 | givenName = contact.givenName
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/PhoneContact.swift:73:11: error: cannot find type 'CNContact' in scope
71 |
72 |
73 | extension CNContact {
| `- error: cannot find type 'CNContact' in scope
74 | var fullName: String {
75 | let safeName = [self.givenName, self.middleName , self.familyName].compactMap({ $0 }).joined(separator: " ")
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:4:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
| `- error: 'State' is only available in macOS 10.15 or newer
5 |
6 | public init(contact: PhoneContact) {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/CompactContactRow.swift:10:27: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct CompactContactRow: View {
| `- note: add @available attribute to enclosing struct
4 | @State var contact: PhoneContact
5 |
:
8 | }
9 |
10 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
11 | HStack(spacing: 2) {
12 | if let gn = contact.givenName {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:4:6: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ContactPickerHeader: View {
| `- note: add @available attribute to enclosing struct
4 | @Binding var text: String
| `- error: 'Binding' is only available in macOS 10.15 or newer
5 | public let onCancel: (() -> Void)?
6 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ContactPickerHeader: View {
| `- note: add @available attribute to enclosing struct
4 | @Binding var text: String
5 | public let onCancel: (() -> Void)?
6 |
7 | @State private var showCancelButton: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
8 |
9 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:9:27: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ContactPickerHeader: View {
| `- note: add @available attribute to enclosing struct
4 | @Binding var text: String
5 | public let onCancel: (() -> Void)?
:
7 | @State private var showCancelButton: Bool = false
8 |
9 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
10 | VStack(spacing: 0) {
11 | if !showCancelButton {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Views/ContactPickerHeaderView.swift:82:48: error: 'View' is only available in macOS 10.15 or newer
76 | }
77 |
78 | public struct PlaceholderStyle: ViewModifier {
| `- note: add @available attribute to enclosing struct
79 | var showPlaceHolder: Bool
80 | var placeholder: String
81 |
82 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
83 | ZStack(alignment: .leading) {
84 | if showPlaceHolder {
[10/12] Compiling SwiftUIContactPicker ContactPickerView.swift
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:5:6: error: 'Binding' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
| `- error: 'Binding' is only available in macOS 10.15 or newer
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
7 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:6:6: error: 'StateObject' is only available in macOS 11.0 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
| `- error: 'StateObject' is only available in macOS 11.0 or newer
7 |
8 | public init(
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:10:26: error: 'Binding' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
7 |
8 | public init(
| `- note: add @available attribute to enclosing initializer
9 | viewModel: ContactPickerViewModel,
10 | selectedContact: Binding<PhoneContact?>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
11 | rowBuilder: ((PhoneContact, ContactListView) -> AnyView)? = nil,
12 | onCancel: (() -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:11:57: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
7 |
8 | public init(
| `- note: add @available attribute to enclosing initializer
9 | viewModel: ContactPickerViewModel,
10 | selectedContact: Binding<PhoneContact?>,
11 | rowBuilder: ((PhoneContact, ContactListView) -> AnyView)? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
12 | onCancel: (() -> Void)? = nil
13 | ) {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:26:79: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
:
24 | }
25 |
26 | let rowBuilder: (_ contact: PhoneContact, _ listView: ContactListView) -> AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
27 | let onCancel: (() -> Void)?
28 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
:
27 | let onCancel: (() -> Void)?
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | VStack(alignment: .center, spacing: 0) {
31 | ContactPickerHeader(text: $viewModel.query, onCancel: onCancel)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:71:31: error: 'View' is only available in macOS 10.15 or newer
67 | }
68 |
69 | struct ContactListView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
70 | static let vm = ContactPickerViewModel(store: StubContactStore())
71 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
72 | ContactListView(viewModel: vm, selectedContact: Binding.constant(nil)) { contact, _ in
73 | AnyView(CompactContactRow(contact: contact))
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:21:17: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | public struct ContactListView: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var selectedContact: PhoneContact?
6 | @StateObject private var viewModel: ContactPickerViewModel = ContactPickerViewModel(store: ContactStore())
7 |
8 | public init(
| `- note: add @available attribute to enclosing initializer
9 | viewModel: ContactPickerViewModel,
10 | selectedContact: Binding<PhoneContact?>,
:
19 | } else {
20 | self.rowBuilder = { contact, _ in
21 | AnyView(CompactContactRow(contact: contact))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:57:13: error: cannot find 'UIApplication' in scope
55 | }
56 | .onTapGesture {
57 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: cannot find 'UIApplication' in scope
58 | }
59 | .onAppear {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:57:55: error: cannot find 'UIResponder' in scope
55 | }
56 | .onTapGesture {
57 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: cannot find 'UIResponder' in scope
58 | }
59 | .onAppear {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:57:94: error: 'nil' requires a contextual type
55 | }
56 | .onTapGesture {
57 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: 'nil' requires a contextual type
58 | }
59 | .onAppear {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:57:105: error: 'nil' requires a contextual type
55 | }
56 | .onTapGesture {
57 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: 'nil' requires a contextual type
58 | }
59 | .onAppear {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:57:115: error: 'nil' requires a contextual type
55 | }
56 | .onTapGesture {
57 | UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
| `- error: 'nil' requires a contextual type
58 | }
59 | .onAppear {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:72:57: error: 'Binding' is only available in macOS 10.15 or newer
67 | }
68 |
69 | struct ContactListView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
70 | static let vm = ContactPickerViewModel(store: StubContactStore())
71 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
72 | ContactListView(viewModel: vm, selectedContact: Binding.constant(nil)) { contact, _ in
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | AnyView(CompactContactRow(contact: contact))
74 | }
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerView.swift:73:13: error: 'AnyView' is only available in macOS 10.15 or newer
67 | }
68 |
69 | struct ContactListView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
70 | static let vm = ContactPickerViewModel(store: StubContactStore())
71 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
72 | ContactListView(viewModel: vm, selectedContact: Binding.constant(nil)) { contact, _ in
73 | AnyView(CompactContactRow(contact: contact))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }
75 | }
[11/12] Compiling SwiftUIContactPicker ContactStore.swift
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:29:28: error: cannot find type 'CNContact' in scope
27 | }
28 |
29 | func getContacts() -> [CNContact] {
| `- error: cannot find type 'CNContact' in scope
30 | let contactStore = CNContactStore()
31 | let keysToFetch = [
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:8:28: error: 'ObservableObject' is only available in macOS 10.15 or newer
6 | }
7 |
8 | public class ContactStore: ObservableObject, ContactStoreProvider {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
9 | var contacts: [PhoneContact] = []
10 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/PhoneContact.swift:50:19: error: cannot find type 'CNContact' in scope
48 | }
49 |
50 | init(contact: CNContact) {
| `- error: cannot find type 'CNContact' in scope
51 | id = contact.identifier
52 | givenName = contact.givenName
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:26:62: error: argument passed to call that takes no arguments
24 |
25 | func load() {
26 | contacts = getContacts().map { PhoneContact(contact: $0) }
| `- error: argument passed to call that takes no arguments
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:30:28: error: cannot find 'CNContactStore' in scope
28 |
29 | func getContacts() -> [CNContact] {
30 | let contactStore = CNContactStore()
| `- error: cannot find 'CNContactStore' in scope
31 | let keysToFetch = [
32 | CNContactFormatter.descriptorForRequiredKeys(for: .fullName),
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:32:13: error: cannot find 'CNContactFormatter' in scope
30 | let contactStore = CNContactStore()
31 | let keysToFetch = [
32 | CNContactFormatter.descriptorForRequiredKeys(for: .fullName),
| `- error: cannot find 'CNContactFormatter' in scope
33 | CNContactIdentifierKey,
34 | CNContactPhoneNumbersKey,
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:33:13: error: cannot find 'CNContactIdentifierKey' in scope
31 | let keysToFetch = [
32 | CNContactFormatter.descriptorForRequiredKeys(for: .fullName),
33 | CNContactIdentifierKey,
| `- error: cannot find 'CNContactIdentifierKey' in scope
34 | CNContactPhoneNumbersKey,
35 | CNContactEmailAddressesKey,
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:34:13: error: cannot find 'CNContactPhoneNumbersKey' in scope
32 | CNContactFormatter.descriptorForRequiredKeys(for: .fullName),
33 | CNContactIdentifierKey,
34 | CNContactPhoneNumbersKey,
| `- error: cannot find 'CNContactPhoneNumbersKey' in scope
35 | CNContactEmailAddressesKey,
36 | CNContactThumbnailImageDataKey,
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:35:13: error: cannot find 'CNContactEmailAddressesKey' in scope
33 | CNContactIdentifierKey,
34 | CNContactPhoneNumbersKey,
35 | CNContactEmailAddressesKey,
| `- error: cannot find 'CNContactEmailAddressesKey' in scope
36 | CNContactThumbnailImageDataKey,
37 | CNContactViewController.descriptorForRequiredKeys(),
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:36:13: error: cannot find 'CNContactThumbnailImageDataKey' in scope
34 | CNContactPhoneNumbersKey,
35 | CNContactEmailAddressesKey,
36 | CNContactThumbnailImageDataKey,
| `- error: cannot find 'CNContactThumbnailImageDataKey' in scope
37 | CNContactViewController.descriptorForRequiredKeys(),
38 | ] as [Any]
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:32:64: error: cannot infer contextual base in reference to member 'fullName'
30 | let contactStore = CNContactStore()
31 | let keysToFetch = [
32 | CNContactFormatter.descriptorForRequiredKeys(for: .fullName),
| `- error: cannot infer contextual base in reference to member 'fullName'
33 | CNContactIdentifierKey,
34 | CNContactPhoneNumbersKey,
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:40:29: error: cannot find type 'CNContainer' in scope
38 | ] as [Any]
39 |
40 | var allContainers: [CNContainer] = []
| `- error: cannot find type 'CNContainer' in scope
41 | do {
42 | allContainers = try contactStore.containers(matching: nil)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:42:67: error: 'nil' requires a contextual type
40 | var allContainers: [CNContainer] = []
41 | do {
42 | allContainers = try contactStore.containers(matching: nil)
| `- error: 'nil' requires a contextual type
43 | } catch {
44 | print("Error fetching containers")
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/Model/ContactStore.swift:47:26: error: cannot find type 'CNContact' in scope
45 | }
46 |
47 | var results: Set<CNContact> = []
| `- error: cannot find type 'CNContact' in scope
48 |
49 | for container in allContainers {
[12/12] Compiling SwiftUIContactPicker ContactPickerViewModel.swift
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:18:6: error: 'Published' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
18 | @Published public var selectedContact: PhoneContact?
| `- error: 'Published' is only available in macOS 10.15 or newer
19 | @Published public var rows: [PhoneContact] = []
20 | @Published public var groups: [Group] = []
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:19:6: error: 'Published' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
18 | @Published public var selectedContact: PhoneContact?
19 | @Published public var rows: [PhoneContact] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
20 | @Published public var groups: [Group] = []
21 |
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:20:6: error: 'Published' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
18 | @Published public var selectedContact: PhoneContact?
19 | @Published public var rows: [PhoneContact] = []
20 | @Published public var groups: [Group] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
21 |
22 | var query: String = "" {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:33:33: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
31 | let onlyWithPhoneNumber: Bool
32 |
33 | private let searchSubject = PassthroughSubject<String, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
34 |
35 | private var searchCancellable: Cancellable!
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:35:36: error: 'Cancellable' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
33 | private let searchSubject = PassthroughSubject<String, Never>()
34 |
35 | private var searchCancellable: Cancellable!
| `- error: 'Cancellable' is only available in macOS 10.15 or newer
36 |
37 | deinit {
<unknown>:0: error: cannot convert value of type 'KeyPath<ContactPickerViewModel, PhoneContact?>' to expected argument type 'ReferenceWritableKeyPath<ContactPickerViewModel, PhoneContact?>'
<unknown>:0: error: cannot convert value of type 'KeyPath<ContactPickerViewModel, [PhoneContact]>' to expected argument type 'ReferenceWritableKeyPath<ContactPickerViewModel, [PhoneContact]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<ContactPickerViewModel, [Group]>' to expected argument type 'ReferenceWritableKeyPath<ContactPickerViewModel, [Group]>'
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:46:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
39 | }
40 |
41 | public init(store: ContactStoreProvider, onlyWithPhoneNumber: Bool = false) {
| `- note: add @available attribute to enclosing initializer
42 | self.store = store
43 | self.onlyWithPhoneNumber = onlyWithPhoneNumber
44 |
45 | searchCancellable = searchSubject
46 | .eraseToAnyPublisher().map { $0 }
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .debounce(for: .milliseconds(100), scheduler: DispatchQueue.main)
48 | .removeDuplicates()
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:46:36: error: 'map' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
39 | }
40 |
41 | public init(store: ContactStoreProvider, onlyWithPhoneNumber: Bool = false) {
| `- note: add @available attribute to enclosing initializer
42 | self.store = store
43 | self.onlyWithPhoneNumber = onlyWithPhoneNumber
44 |
45 | searchCancellable = searchSubject
46 | .eraseToAnyPublisher().map { $0 }
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .debounce(for: .milliseconds(100), scheduler: DispatchQueue.main)
48 | .removeDuplicates()
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:47:14: error: 'debounce(for:scheduler:options:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
39 | }
40 |
41 | public init(store: ContactStoreProvider, onlyWithPhoneNumber: Bool = false) {
| `- note: add @available attribute to enclosing initializer
42 | self.store = store
43 | self.onlyWithPhoneNumber = onlyWithPhoneNumber
:
45 | searchCancellable = searchSubject
46 | .eraseToAnyPublisher().map { $0 }
47 | .debounce(for: .milliseconds(100), scheduler: DispatchQueue.main)
| |- error: 'debounce(for:scheduler:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | .removeDuplicates()
49 | .sink(receiveValue: { searchText in
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:48:14: error: 'removeDuplicates()' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
39 | }
40 |
41 | public init(store: ContactStoreProvider, onlyWithPhoneNumber: Bool = false) {
| `- note: add @available attribute to enclosing initializer
42 | self.store = store
43 | self.onlyWithPhoneNumber = onlyWithPhoneNumber
:
46 | .eraseToAnyPublisher().map { $0 }
47 | .debounce(for: .milliseconds(100), scheduler: DispatchQueue.main)
48 | .removeDuplicates()
| |- error: 'removeDuplicates()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .sink(receiveValue: { searchText in
50 | let rows = self.store.filtered(by: searchText)
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:49:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
39 | }
40 |
41 | public init(store: ContactStoreProvider, onlyWithPhoneNumber: Bool = false) {
| `- note: add @available attribute to enclosing initializer
42 | self.store = store
43 | self.onlyWithPhoneNumber = onlyWithPhoneNumber
:
47 | .debounce(for: .milliseconds(100), scheduler: DispatchQueue.main)
48 | .removeDuplicates()
49 | .sink(receiveValue: { searchText in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | let rows = self.store.filtered(by: searchText)
51 | if self.onlyWithPhoneNumber {
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:52:21: error: setter for 'rows' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
39 | }
40 |
41 | public init(store: ContactStoreProvider, onlyWithPhoneNumber: Bool = false) {
| `- note: add @available attribute to enclosing initializer
42 | self.store = store
43 | self.onlyWithPhoneNumber = onlyWithPhoneNumber
:
50 | let rows = self.store.filtered(by: searchText)
51 | if self.onlyWithPhoneNumber {
52 | self.rows = rows.filter { $0.phoneNumber.count > 0 }
| |- error: setter for 'rows' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | } else {
54 | self.rows = rows
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:54:21: error: setter for 'rows' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
39 | }
40 |
41 | public init(store: ContactStoreProvider, onlyWithPhoneNumber: Bool = false) {
| `- note: add @available attribute to enclosing initializer
42 | self.store = store
43 | self.onlyWithPhoneNumber = onlyWithPhoneNumber
:
52 | self.rows = rows.filter { $0.phoneNumber.count > 0 }
53 | } else {
54 | self.rows = rows
| |- error: setter for 'rows' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }
56 | self.updateGroups()
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Sources/SwiftUIContactPicker/ContactPickerViewModel.swift:72:9: error: setter for 'groups' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class ContactPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | private var store: ContactStoreProvider
17 |
:
58 | }
59 |
60 | public func updateGroups() {
| `- note: add @available attribute to enclosing instance method
61 | let _groups = Dictionary(grouping: rows) { (contact: PhoneContact) -> String in
62 | return String(contact.sortName.prefix(1))
:
70 | }))
71 | }
72 | self.groups = _groups
| |- error: setter for 'groups' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 | }
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/SwiftUIContactPickerExample': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources': File not found.
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/README.md
/Users/admin/builder/spi-builder-workspace/SwiftUIContactPicker/Info.plist
BUILD FAILURE 6.2 macosSpm