Build Information
Failed to build MultiSelectPicker, reference 1.0.3 (0cce8e), with Swift 6.1 for macOS (SPM) on 15 Jun 2025 06:43:24 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yusuphjoluwasen/MultiSelectPicker.git
Reference: 1.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yusuphjoluwasen/MultiSelectPicker
* tag 1.0.3 -> FETCH_HEAD
HEAD is now at 0cce8e3 updated example project
Cloned https://github.com/yusuphjoluwasen/MultiSelectPicker.git
Revision (git rev-parse @):
0cce8e31291638227f9ba6083cb3f91448c9ee7b
SUCCESS checkout https://github.com/yusuphjoluwasen/MultiSelectPicker.git at 1.0.3
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "multiselectpicker",
"name": "MultiSelectPicker",
"url": "https://github.com/yusuphjoluwasen/MultiSelectPicker.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MultiSelectPicker",
"dependencies": [
]
}
]
}
Fetching https://github.com/yusuphjoluwasen/MultiSelectPicker.git
[1/448] Fetching multiselectpicker
Fetched https://github.com/yusuphjoluwasen/MultiSelectPicker.git from cache (0.77s)
Creating working copy for https://github.com/yusuphjoluwasen/MultiSelectPicker.git
Working copy of https://github.com/yusuphjoluwasen/MultiSelectPicker.git resolved at 1.0.3 (0cce8e3)
warning: '.resolve-product-dependencies': dependency 'multiselectpicker' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/yusuphjoluwasen/MultiSelectPicker.git
https://github.com/yusuphjoluwasen/MultiSelectPicker.git
{
"dependencies" : [
],
"manifest_display_name" : "MultiSelectPicker",
"name" : "MultiSelectPicker",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "MultiSelectPicker",
"targets" : [
"MultiSelectPicker"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MultiSelectPickerTests",
"module_type" : "SwiftTarget",
"name" : "MultiSelectPickerTests",
"path" : "Tests/MultiSelectPickerTests",
"sources" : [
"MultiSelectPickerTests.swift"
],
"target_dependencies" : [
"MultiSelectPicker"
],
"type" : "test"
},
{
"c99name" : "MultiSelectPicker",
"module_type" : "SwiftTarget",
"name" : "MultiSelectPicker",
"path" : "Sources/MultiSelectPicker",
"product_memberships" : [
"MultiSelectPicker"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/Assets.xcassets",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"FormOption.swift",
"MultiSelectPicker.swift",
"MultiSelectPickerViewModel.swift",
"OptionSelectionSheet.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/3] Write sources
[1/3] Copying Assets.xcassets
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/9] Compiling MultiSelectPicker resource_bundle_accessor.swift
[5/9] Compiling MultiSelectPicker OptionSelectionSheet.swift
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
15 | @Binding var selectedIDs: Set<String>
| `- error: 'Binding' is only available in macOS 10.15 or newer
16 | @Binding var searchText: String
17 | var onToggle: (FormOption) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
15 | @Binding var selectedIDs: Set<String>
16 | @Binding var searchText: String
| `- error: 'Binding' is only available in macOS 10.15 or newer
17 | var onToggle: (FormOption) -> Void
18 | var onClear: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:21:20: error: 'View' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
:
19 | var onDone: () -> Void
20 |
21 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
22 | NavigationStack {
23 | List {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:64:20: error: 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:36:14: error: ambiguous use of 'toolbar(content:)'
34 | .navigationTitle(title)
35 | .navigationBarTitleDisplayMode(.inline)
36 | .toolbar {
| `- error: ambiguous use of 'toolbar(content:)'
37 | ToolbarItem(placement: .navigationBarLeading) {
38 | if !selectedIDs.isEmpty {
SwiftUI.View.toolbar:2:25: note: found this candidate in module 'SwiftUI'
1 | protocol View {
2 | nonisolated public func toolbar<Content>(@ViewBuilder content: () -> Content) -> some View where Content : View
| `- note: found this candidate in module 'SwiftUI'
3 | }
4 |
SwiftUI.View.toolbar:2:25: note: found this candidate in module 'SwiftUI'
1 | protocol View {
2 | nonisolated public func toolbar<Content>(@ToolbarContentBuilder content: () -> Content) -> some View where Content : ToolbarContent
| `- note: found this candidate in module 'SwiftUI'
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:65:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | HStack {
67 | Text(option.label)
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:65:9: error: 'Button' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | HStack {
67 | Text(option.label)
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:66:13: error: 'HStack' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text(option.label)
68 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:67:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
67 | Text(option.label)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | Spacer()
69 | if isSelected {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:67:17: error: 'Text' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
67 | Text(option.label)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | Spacer()
69 | if isSelected {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:68:17: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
67 | Text(option.label)
68 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | if isSelected {
70 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:68:17: error: 'Spacer' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
67 | Text(option.label)
68 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | if isSelected {
70 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:70:21: error: 'Image' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
68 | Spacer()
69 | if isSelected {
70 | Image(systemName: "checkmark")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .foregroundColor(.accentColor)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:70:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
68 | Spacer()
69 | if isSelected {
70 | Image(systemName: "checkmark")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
71 | .foregroundColor(.accentColor)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:71:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
69 | if isSelected {
70 | Image(systemName: "checkmark")
71 | .foregroundColor(.accentColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:71:43: error: 'accentColor' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
69 | if isSelected {
70 | Image(systemName: "checkmark")
71 | .foregroundColor(.accentColor)
| |- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:69:31: error: 'buildIf' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
67 | Text(option.label)
68 | Spacer()
69 | if isSelected {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | Image(systemName: "checkmark")
71 | .foregroundColor(.accentColor)
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:72:17: error: 'buildIf' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
70 | Image(systemName: "checkmark")
71 | .foregroundColor(.accentColor)
72 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:66:20: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text(option.label)
68 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:66:20: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text(option.label)
68 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:66:20: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text(option.label)
68 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:75:10: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
73 | }
74 | }
75 | .accessibilityElement()
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .accessibilityLabel(option.label)
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:76:10: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
74 | }
75 | .accessibilityElement()
76 | .accessibilityLabel(option.label)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
78 | .accessibilityAddTraits(isSelected ? [.isButton, .isSelected] : .isButton)
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:77:10: error: 'accessibilityValue' is only available in macOS 11.0 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
75 | .accessibilityElement()
76 | .accessibilityLabel(option.label)
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
| |- error: 'accessibilityValue' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
78 | .accessibilityAddTraits(isSelected ? [.isButton, .isSelected] : .isButton)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:77:42: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
75 | .accessibilityElement()
76 | .accessibilityLabel(option.label)
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .accessibilityAddTraits(isSelected ? [.isButton, .isSelected] : .isButton)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:77:55: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
75 | .accessibilityElement()
76 | .accessibilityLabel(option.label)
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .accessibilityAddTraits(isSelected ? [.isButton, .isSelected] : .isButton)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:78:10: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
76 | .accessibilityLabel(option.label)
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
78 | .accessibilityAddTraits(isSelected ? [.isButton, .isSelected] : .isButton)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
79 | }
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:64:25: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| | |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
[6/9] Compiling MultiSelectPicker FormOption.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/9] Compiling MultiSelectPicker MultiSelectPicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | public var preSelected: [FormOption]
14 | public var onDone: ((Set<FormOption>) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:16:6: error: 'StateObject' is only available in macOS 11.0 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
14 | public var onDone: ((Set<FormOption>) -> Void)? = nil
15 |
16 | @StateObject private var viewModel: MultiSelectPickerViewModel
| `- error: 'StateObject' is only available in macOS 11.0 or newer
17 | @State private var showOptionsSheet = false
18 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
15 |
16 | @StateObject private var viewModel: MultiSelectPickerViewModel
17 | @State private var showOptionsSheet = false
| `- error: 'State' is only available in macOS 10.15 or newer
18 |
19 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:21:18: error: 'Binding' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
17 | @State private var showOptionsSheet = false
18 |
19 | public init(
| `- note: add @available attribute to enclosing initializer
20 | title: String,
21 | options: Binding<[FormOption]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
22 | preSelected: [FormOption] = [],
23 | onDone: ((Set<FormOption>) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:35:27: error: 'View' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
33 | }
34 |
35 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
36 | VStack(alignment: .leading) {
37 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:29:22: error: 'StateObject' is only available in macOS 11.0 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
17 | @State private var showOptionsSheet = false
18 |
19 | public init(
| `- note: add @available attribute to enclosing initializer
20 | title: String,
21 | options: Binding<[FormOption]>,
:
27 | self.preSelected = preSelected
28 | self.onDone = onDone
29 | _viewModel = StateObject(wrappedValue: MultiSelectPickerViewModel(
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
30 | options: options.wrappedValue,
31 | preSelected: preSelected
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:57:45: error: cannot assign to property: '$viewModel' is immutable
55 | allOptions: viewModel.filteredOptions,
56 | title: title,
57 | selectedIDs: $viewModel.selectedIDs,
| `- error: cannot assign to property: '$viewModel' is immutable
58 | searchText: $viewModel.searchText,
59 | onToggle: { option in
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:58:44: error: cannot assign to property: '$viewModel' is immutable
56 | title: title,
57 | selectedIDs: $viewModel.selectedIDs,
58 | searchText: $viewModel.searchText,
| `- error: cannot assign to property: '$viewModel' is immutable
59 | onToggle: { option in
60 | viewModel.toggleSelection(option)
[8/9] Emitting module MultiSelectPicker
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | public var preSelected: [FormOption]
14 | public var onDone: ((Set<FormOption>) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:16:6: error: 'StateObject' is only available in macOS 11.0 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
14 | public var onDone: ((Set<FormOption>) -> Void)? = nil
15 |
16 | @StateObject private var viewModel: MultiSelectPickerViewModel
| `- error: 'StateObject' is only available in macOS 11.0 or newer
17 | @State private var showOptionsSheet = false
18 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
15 |
16 | @StateObject private var viewModel: MultiSelectPickerViewModel
17 | @State private var showOptionsSheet = false
| `- error: 'State' is only available in macOS 10.15 or newer
18 |
19 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:21:18: error: 'Binding' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
17 | @State private var showOptionsSheet = false
18 |
19 | public init(
| `- note: add @available attribute to enclosing initializer
20 | title: String,
21 | options: Binding<[FormOption]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
22 | preSelected: [FormOption] = [],
23 | onDone: ((Set<FormOption>) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:35:27: error: 'View' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
33 | }
34 |
35 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
36 | VStack(alignment: .leading) {
37 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
| `- error: 'Published' is only available in macOS 10.15 or newer
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | @Published var selectedIDs: Set<String>
16 | @Published var searchText: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published var searchText: String = ""
17 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
16 | @Published var searchText: String = ""
| `- error: 'Published' is only available in macOS 10.15 or newer
17 |
18 | public init(options: [FormOption], preSelected: [FormOption] = []) {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
15 | @Binding var selectedIDs: Set<String>
| `- error: 'Binding' is only available in macOS 10.15 or newer
16 | @Binding var searchText: String
17 | var onToggle: (FormOption) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
15 | @Binding var selectedIDs: Set<String>
16 | @Binding var searchText: String
| `- error: 'Binding' is only available in macOS 10.15 or newer
17 | var onToggle: (FormOption) -> Void
18 | var onClear: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:21:20: error: 'View' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
:
19 | var onDone: () -> Void
20 |
21 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
22 | NavigationStack {
23 | List {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:64:20: error: 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
[9/9] Compiling MultiSelectPicker MultiSelectPickerViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
| `- error: 'Published' is only available in macOS 10.15 or newer
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | @Published var selectedIDs: Set<String>
16 | @Published var searchText: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published var searchText: String = ""
17 |
<unknown>:0: error: cannot convert value of type 'KeyPath<MultiSelectPickerViewModel, [FormOption]>' to expected argument type 'ReferenceWritableKeyPath<MultiSelectPickerViewModel, [FormOption]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<MultiSelectPickerViewModel, Set<FormOption>>' to expected argument type 'ReferenceWritableKeyPath<MultiSelectPickerViewModel, Set<FormOption>>'
<unknown>:0: error: cannot convert value of type 'KeyPath<MultiSelectPickerViewModel, Set<String>>' to expected argument type 'ReferenceWritableKeyPath<MultiSelectPickerViewModel, Set<String>>'
<unknown>:0: error: cannot convert value of type 'KeyPath<MultiSelectPickerViewModel, String>' to expected argument type 'ReferenceWritableKeyPath<MultiSelectPickerViewModel, String>'
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
16 | @Published var searchText: String = ""
| `- error: 'Published' is only available in macOS 10.15 or newer
17 |
18 | public init(options: [FormOption], preSelected: [FormOption] = []) {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:19:9: error: setter for 'allOptions' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
16 | @Published var searchText: String = ""
17 |
18 | public init(options: [FormOption], preSelected: [FormOption] = []) {
| `- note: add @available attribute to enclosing initializer
19 | self.allOptions = options
| |- error: setter for 'allOptions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | let preSelectedIDs = Set(preSelected.map { $0.id })
21 | let selected = options.filter { preSelectedIDs.contains($0.id) }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:23:9: error: setter for 'selectedOptions' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
16 | @Published var searchText: String = ""
17 |
18 | public init(options: [FormOption], preSelected: [FormOption] = []) {
| `- note: add @available attribute to enclosing initializer
19 | self.allOptions = options
20 | let preSelectedIDs = Set(preSelected.map { $0.id })
21 | let selected = options.filter { preSelectedIDs.contains($0.id) }
22 |
23 | self.selectedOptions = Set(selected)
| |- error: setter for 'selectedOptions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | self.selectedIDs = preSelectedIDs
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:24:9: error: setter for 'selectedIDs' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
16 | @Published var searchText: String = ""
17 |
18 | public init(options: [FormOption], preSelected: [FormOption] = []) {
| `- note: add @available attribute to enclosing initializer
19 | self.allOptions = options
20 | let preSelectedIDs = Set(preSelected.map { $0.id })
:
22 |
23 | self.selectedOptions = Set(selected)
24 | self.selectedIDs = preSelectedIDs
| |- error: setter for 'selectedIDs' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:36:13: error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
32 | }
33 |
34 | public func toggleSelection(_ option: FormOption) {
| `- note: add @available attribute to enclosing instance method
35 | if selectedOptions.contains(option) {
36 | selectedOptions.remove(option)
| |- error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | selectedIDs.remove(option.id)
38 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:37:13: error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
32 | }
33 |
34 | public func toggleSelection(_ option: FormOption) {
| `- note: add @available attribute to enclosing instance method
35 | if selectedOptions.contains(option) {
36 | selectedOptions.remove(option)
37 | selectedIDs.remove(option.id)
| |- error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | } else {
39 | selectedOptions.insert(option)
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:39:13: error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
32 | }
33 |
34 | public func toggleSelection(_ option: FormOption) {
| `- note: add @available attribute to enclosing instance method
35 | if selectedOptions.contains(option) {
36 | selectedOptions.remove(option)
37 | selectedIDs.remove(option.id)
38 | } else {
39 | selectedOptions.insert(option)
| |- error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | selectedIDs.insert(option.id)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:40:13: error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
32 | }
33 |
34 | public func toggleSelection(_ option: FormOption) {
| `- note: add @available attribute to enclosing instance method
35 | if selectedOptions.contains(option) {
36 | selectedOptions.remove(option)
:
38 | } else {
39 | selectedOptions.insert(option)
40 | selectedIDs.insert(option.id)
| |- error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:45:9: error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
42 | }
43 |
44 | public func clearSelection() {
| `- note: add @available attribute to enclosing instance method
45 | selectedOptions.removeAll()
| |- error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | selectedIDs.removeAll()
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:46:9: error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
42 | }
43 |
44 | public func clearSelection() {
| `- note: add @available attribute to enclosing instance method
45 | selectedOptions.removeAll()
46 | selectedIDs.removeAll()
| |- error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/7] Compiling MultiSelectPicker FormOption.swift
[3/7] Compiling MultiSelectPicker resource_bundle_accessor.swift
[4/7] Emitting module MultiSelectPicker
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | public var preSelected: [FormOption]
14 | public var onDone: ((Set<FormOption>) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:16:6: error: 'StateObject' is only available in macOS 11.0 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
14 | public var onDone: ((Set<FormOption>) -> Void)? = nil
15 |
16 | @StateObject private var viewModel: MultiSelectPickerViewModel
| `- error: 'StateObject' is only available in macOS 11.0 or newer
17 | @State private var showOptionsSheet = false
18 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
15 |
16 | @StateObject private var viewModel: MultiSelectPickerViewModel
17 | @State private var showOptionsSheet = false
| `- error: 'State' is only available in macOS 10.15 or newer
18 |
19 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:21:18: error: 'Binding' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
17 | @State private var showOptionsSheet = false
18 |
19 | public init(
| `- note: add @available attribute to enclosing initializer
20 | title: String,
21 | options: Binding<[FormOption]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
22 | preSelected: [FormOption] = [],
23 | onDone: ((Set<FormOption>) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:35:27: error: 'View' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
33 | }
34 |
35 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
36 | VStack(alignment: .leading) {
37 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
| `- error: 'Published' is only available in macOS 10.15 or newer
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | @Published var selectedIDs: Set<String>
16 | @Published var searchText: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published var searchText: String = ""
17 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
16 | @Published var searchText: String = ""
| `- error: 'Published' is only available in macOS 10.15 or newer
17 |
18 | public init(options: [FormOption], preSelected: [FormOption] = []) {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
15 | @Binding var selectedIDs: Set<String>
| `- error: 'Binding' is only available in macOS 10.15 or newer
16 | @Binding var searchText: String
17 | var onToggle: (FormOption) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
15 | @Binding var selectedIDs: Set<String>
16 | @Binding var searchText: String
| `- error: 'Binding' is only available in macOS 10.15 or newer
17 | var onToggle: (FormOption) -> Void
18 | var onClear: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:21:20: error: 'View' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
:
19 | var onDone: () -> Void
20 |
21 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
22 | NavigationStack {
23 | List {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:64:20: error: 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
[5/7] Compiling MultiSelectPicker MultiSelectPicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | public var preSelected: [FormOption]
14 | public var onDone: ((Set<FormOption>) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:16:6: error: 'StateObject' is only available in macOS 11.0 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
14 | public var onDone: ((Set<FormOption>) -> Void)? = nil
15 |
16 | @StateObject private var viewModel: MultiSelectPickerViewModel
| `- error: 'StateObject' is only available in macOS 11.0 or newer
17 | @State private var showOptionsSheet = false
18 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
15 |
16 | @StateObject private var viewModel: MultiSelectPickerViewModel
17 | @State private var showOptionsSheet = false
| `- error: 'State' is only available in macOS 10.15 or newer
18 |
19 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:21:18: error: 'Binding' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
17 | @State private var showOptionsSheet = false
18 |
19 | public init(
| `- note: add @available attribute to enclosing initializer
20 | title: String,
21 | options: Binding<[FormOption]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
22 | preSelected: [FormOption] = [],
23 | onDone: ((Set<FormOption>) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:35:27: error: 'View' is only available in macOS 10.15 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
33 | }
34 |
35 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
36 | VStack(alignment: .leading) {
37 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:29:22: error: 'StateObject' is only available in macOS 11.0 or newer
8 | ///
9 | @available(iOS 16.0, *)
10 | public struct MultiSelectPicker: View {
| `- note: add @available attribute to enclosing struct
11 | public var title: String
12 | @Binding public var options: [FormOption]
:
17 | @State private var showOptionsSheet = false
18 |
19 | public init(
| `- note: add @available attribute to enclosing initializer
20 | title: String,
21 | options: Binding<[FormOption]>,
:
27 | self.preSelected = preSelected
28 | self.onDone = onDone
29 | _viewModel = StateObject(wrappedValue: MultiSelectPickerViewModel(
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
30 | options: options.wrappedValue,
31 | preSelected: preSelected
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:57:45: error: cannot assign to property: '$viewModel' is immutable
55 | allOptions: viewModel.filteredOptions,
56 | title: title,
57 | selectedIDs: $viewModel.selectedIDs,
| `- error: cannot assign to property: '$viewModel' is immutable
58 | searchText: $viewModel.searchText,
59 | onToggle: { option in
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPicker.swift:58:44: error: cannot assign to property: '$viewModel' is immutable
56 | title: title,
57 | selectedIDs: $viewModel.selectedIDs,
58 | searchText: $viewModel.searchText,
| `- error: cannot assign to property: '$viewModel' is immutable
59 | onToggle: { option in
60 | viewModel.toggleSelection(option)
[6/7] Compiling MultiSelectPicker OptionSelectionSheet.swift
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
15 | @Binding var selectedIDs: Set<String>
| `- error: 'Binding' is only available in macOS 10.15 or newer
16 | @Binding var searchText: String
17 | var onToggle: (FormOption) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
15 | @Binding var selectedIDs: Set<String>
16 | @Binding var searchText: String
| `- error: 'Binding' is only available in macOS 10.15 or newer
17 | var onToggle: (FormOption) -> Void
18 | var onClear: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:21:20: error: 'View' is only available in macOS 10.15 or newer
10 | /// A modal sheet view presenting a list of selectable options.
11 | @available(iOS 16.0, *)
12 | struct OptionsSelectionSheet: View {
| `- note: add @available attribute to enclosing struct
13 | var allOptions: [FormOption]
14 | var title: String
:
19 | var onDone: () -> Void
20 |
21 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
22 | NavigationStack {
23 | List {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:64:20: error: 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:36:14: error: ambiguous use of 'toolbar(content:)'
34 | .navigationTitle(title)
35 | .navigationBarTitleDisplayMode(.inline)
36 | .toolbar {
| `- error: ambiguous use of 'toolbar(content:)'
37 | ToolbarItem(placement: .navigationBarLeading) {
38 | if !selectedIDs.isEmpty {
SwiftUI.View.toolbar:2:25: note: found this candidate in module 'SwiftUI'
1 | protocol View {
2 | nonisolated public func toolbar<Content>(@ViewBuilder content: () -> Content) -> some View where Content : View
| `- note: found this candidate in module 'SwiftUI'
3 | }
4 |
SwiftUI.View.toolbar:2:25: note: found this candidate in module 'SwiftUI'
1 | protocol View {
2 | nonisolated public func toolbar<Content>(@ToolbarContentBuilder content: () -> Content) -> some View where Content : ToolbarContent
| `- note: found this candidate in module 'SwiftUI'
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:65:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | HStack {
67 | Text(option.label)
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:65:9: error: 'Button' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | HStack {
67 | Text(option.label)
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:66:13: error: 'HStack' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text(option.label)
68 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:67:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
67 | Text(option.label)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | Spacer()
69 | if isSelected {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:67:17: error: 'Text' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
67 | Text(option.label)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | Spacer()
69 | if isSelected {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:68:17: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
67 | Text(option.label)
68 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | if isSelected {
70 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:68:17: error: 'Spacer' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
67 | Text(option.label)
68 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | if isSelected {
70 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:70:21: error: 'Image' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
68 | Spacer()
69 | if isSelected {
70 | Image(systemName: "checkmark")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .foregroundColor(.accentColor)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:70:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
68 | Spacer()
69 | if isSelected {
70 | Image(systemName: "checkmark")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
71 | .foregroundColor(.accentColor)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:71:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
69 | if isSelected {
70 | Image(systemName: "checkmark")
71 | .foregroundColor(.accentColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:71:43: error: 'accentColor' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
69 | if isSelected {
70 | Image(systemName: "checkmark")
71 | .foregroundColor(.accentColor)
| |- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:69:31: error: 'buildIf' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
67 | Text(option.label)
68 | Spacer()
69 | if isSelected {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | Image(systemName: "checkmark")
71 | .foregroundColor(.accentColor)
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:72:17: error: 'buildIf' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
70 | Image(systemName: "checkmark")
71 | .foregroundColor(.accentColor)
72 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:66:20: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text(option.label)
68 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:66:20: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text(option.label)
68 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:66:20: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text(option.label)
68 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:75:10: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
73 | }
74 | }
75 | .accessibilityElement()
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .accessibilityLabel(option.label)
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:76:10: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
74 | }
75 | .accessibilityElement()
76 | .accessibilityLabel(option.label)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
78 | .accessibilityAddTraits(isSelected ? [.isButton, .isSelected] : .isButton)
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:77:10: error: 'accessibilityValue' is only available in macOS 11.0 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
75 | .accessibilityElement()
76 | .accessibilityLabel(option.label)
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
| |- error: 'accessibilityValue' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
78 | .accessibilityAddTraits(isSelected ? [.isButton, .isSelected] : .isButton)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:77:42: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
75 | .accessibilityElement()
76 | .accessibilityLabel(option.label)
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .accessibilityAddTraits(isSelected ? [.isButton, .isSelected] : .isButton)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:77:55: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
75 | .accessibilityElement()
76 | .accessibilityLabel(option.label)
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .accessibilityAddTraits(isSelected ? [.isButton, .isSelected] : .isButton)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:78:10: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
:
76 | .accessibilityLabel(option.label)
77 | .accessibilityValue(isSelected ? "Selected" : "Not selected")
78 | .accessibilityAddTraits(isSelected ? [.isButton, .isSelected] : .isButton)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
79 | }
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/OptionSelectionSheet.swift:64:25: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
57 |
58 | @available(iOS 14.0, *)
59 | struct MultipleSelectionRow: View {
| `- note: add @available attribute to enclosing struct
60 | var option: FormOption
61 | var isSelected: Bool
62 | var onTap: () -> Void
63 |
64 | var body: some View {
| | |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
65 | Button(action: onTap) {
66 | HStack {
[7/7] Compiling MultiSelectPicker MultiSelectPickerViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
| `- error: 'Published' is only available in macOS 10.15 or newer
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | @Published var selectedIDs: Set<String>
16 | @Published var searchText: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published var searchText: String = ""
17 |
<unknown>:0: error: cannot convert value of type 'KeyPath<MultiSelectPickerViewModel, [FormOption]>' to expected argument type 'ReferenceWritableKeyPath<MultiSelectPickerViewModel, [FormOption]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<MultiSelectPickerViewModel, Set<FormOption>>' to expected argument type 'ReferenceWritableKeyPath<MultiSelectPickerViewModel, Set<FormOption>>'
<unknown>:0: error: cannot convert value of type 'KeyPath<MultiSelectPickerViewModel, Set<String>>' to expected argument type 'ReferenceWritableKeyPath<MultiSelectPickerViewModel, Set<String>>'
<unknown>:0: error: cannot convert value of type 'KeyPath<MultiSelectPickerViewModel, String>' to expected argument type 'ReferenceWritableKeyPath<MultiSelectPickerViewModel, String>'
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
15 | @Published var selectedIDs: Set<String>
16 | @Published var searchText: String = ""
| `- error: 'Published' is only available in macOS 10.15 or newer
17 |
18 | public init(options: [FormOption], preSelected: [FormOption] = []) {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:19:9: error: setter for 'allOptions' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
16 | @Published var searchText: String = ""
17 |
18 | public init(options: [FormOption], preSelected: [FormOption] = []) {
| `- note: add @available attribute to enclosing initializer
19 | self.allOptions = options
| |- error: setter for 'allOptions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | let preSelectedIDs = Set(preSelected.map { $0.id })
21 | let selected = options.filter { preSelectedIDs.contains($0.id) }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:23:9: error: setter for 'selectedOptions' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
16 | @Published var searchText: String = ""
17 |
18 | public init(options: [FormOption], preSelected: [FormOption] = []) {
| `- note: add @available attribute to enclosing initializer
19 | self.allOptions = options
20 | let preSelectedIDs = Set(preSelected.map { $0.id })
21 | let selected = options.filter { preSelectedIDs.contains($0.id) }
22 |
23 | self.selectedOptions = Set(selected)
| |- error: setter for 'selectedOptions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | self.selectedIDs = preSelectedIDs
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:24:9: error: setter for 'selectedIDs' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
16 | @Published var searchText: String = ""
17 |
18 | public init(options: [FormOption], preSelected: [FormOption] = []) {
| `- note: add @available attribute to enclosing initializer
19 | self.allOptions = options
20 | let preSelectedIDs = Set(preSelected.map { $0.id })
:
22 |
23 | self.selectedOptions = Set(selected)
24 | self.selectedIDs = preSelectedIDs
| |- error: setter for 'selectedIDs' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:36:13: error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
32 | }
33 |
34 | public func toggleSelection(_ option: FormOption) {
| `- note: add @available attribute to enclosing instance method
35 | if selectedOptions.contains(option) {
36 | selectedOptions.remove(option)
| |- error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | selectedIDs.remove(option.id)
38 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:37:13: error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
32 | }
33 |
34 | public func toggleSelection(_ option: FormOption) {
| `- note: add @available attribute to enclosing instance method
35 | if selectedOptions.contains(option) {
36 | selectedOptions.remove(option)
37 | selectedIDs.remove(option.id)
| |- error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | } else {
39 | selectedOptions.insert(option)
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:39:13: error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
32 | }
33 |
34 | public func toggleSelection(_ option: FormOption) {
| `- note: add @available attribute to enclosing instance method
35 | if selectedOptions.contains(option) {
36 | selectedOptions.remove(option)
37 | selectedIDs.remove(option.id)
38 | } else {
39 | selectedOptions.insert(option)
| |- error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | selectedIDs.insert(option.id)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:40:13: error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
32 | }
33 |
34 | public func toggleSelection(_ option: FormOption) {
| `- note: add @available attribute to enclosing instance method
35 | if selectedOptions.contains(option) {
36 | selectedOptions.remove(option)
:
38 | } else {
39 | selectedOptions.insert(option)
40 | selectedIDs.insert(option.id)
| |- error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:45:9: error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
42 | }
43 |
44 | public func clearSelection() {
| `- note: add @available attribute to enclosing instance method
45 | selectedOptions.removeAll()
| |- error: cannot pass as inout because setter for 'selectedOptions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | selectedIDs.removeAll()
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/MultiSelectPicker/MultiSelectPickerViewModel.swift:46:9: error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
10 | @available(iOS 16.0, *)
11 | @MainActor
12 | public class MultiSelectPickerViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published var allOptions: [FormOption]
14 | @Published var selectedOptions: Set<FormOption>
:
42 | }
43 |
44 | public func clearSelection() {
| `- note: add @available attribute to enclosing instance method
45 | selectedOptions.removeAll()
46 | selectedIDs.removeAll()
| |- error: cannot pass as inout because setter for 'selectedIDs' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 |
BUILD FAILURE 6.1 macosSpm