Build Information
Failed to build CountryPicker, reference master (6724de
), with Swift 6.0 for macOS (SPM) on 15 Jun 2025 19:30:55 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/suryakantsharma/countrypicker.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/suryakantsharma/countrypicker
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 6724deb Merge pull request #129 from SURYAKANTSHARMA/refactor/sdk-swift6-update
Cloned https://github.com/suryakantsharma/countrypicker.git
Revision (git rev-parse @):
6724debeadd600e76c446c73535bbd6c09617989
SUCCESS checkout https://github.com/suryakantsharma/countrypicker.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/suryakantsharma/countrypicker.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Copying CountryPickerController.bundle
[2/3] Write swift-version-5BDAB9E9C0126B9D.txt
[4/14] Compiling CountryPicker CountryPickerWheelView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:12:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
13 | @Binding public var selectedCountry: Country
14 |
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:15:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:31:34: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
:
29 |
30 | @MainActor
31 | public init(selectedCountry: Binding<Country>, viewModel: CountryPickerWheelViewModel? = nil) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self._selectedCountry = selectedCountry
33 | self.viewModel = viewModel ?? CountryPickerWheelViewModel()
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:42:20: error: 'View' is only available in macOS 10.15 or newer
36 | }
37 |
38 | struct CountryPickerWheelItem: View {
| `- note: add @available attribute to enclosing struct
39 |
40 | let country: Country
41 |
42 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
43 | HStack {
44 | Image(uiImage: country.flag ?? UIImage())
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:54:31: error: 'View' is only available in macOS 10.15 or newer
51 | }
52 |
53 | struct CountryPickerWheelView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
54 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
55 | return CountryPickerWheelView(selectedCountry: .constant(.init(countryCode: "IN")))
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:16:9: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | Picker("", selection: $selectedCountry) {
18 | ForEach(viewModel.countries, id: \.self) {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:16:16: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | Picker("", selection: $selectedCountry) {
18 | ForEach(viewModel.countries, id: \.self) {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:16:16: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | Picker("", selection: $selectedCountry) {
18 | ForEach(viewModel.countries, id: \.self) {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:17:13: error: 'Picker' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
| |- error: 'Picker' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | ForEach(viewModel.countries, id: \.self) {
19 | CountryPickerWheelItem(country: $0)
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:17:13: error: 'init(_:selection:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
| |- error: 'init(_:selection:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | ForEach(viewModel.countries, id: \.self) {
19 | CountryPickerWheelItem(country: $0)
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:17:20: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | ForEach(viewModel.countries, id: \.self) {
19 | CountryPickerWheelItem(country: $0)
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:18:17: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
18 | ForEach(viewModel.countries, id: \.self) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | CountryPickerWheelItem(country: $0)
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:18:17: error: 'ForEach' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
18 | ForEach(viewModel.countries, id: \.self) {
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | CountryPickerWheelItem(country: $0)
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:18:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
18 | ForEach(viewModel.countries, id: \.self) {
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | CountryPickerWheelItem(country: $0)
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:17:53: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | ForEach(viewModel.countries, id: \.self) {
19 | CountryPickerWheelItem(country: $0)
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:22:14: error: 'pickerStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
:
20 | }
21 | }
22 | .pickerStyle(.wheel)
| |- error: 'pickerStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | .onChange(of: selectedCountry) {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:22:27: error: 'wheel' is unavailable in macOS
20 | }
21 | }
22 | .pickerStyle(.wheel)
| `- error: 'wheel' is unavailable in macOS
23 | }
24 | .onChange(of: selectedCountry) {
SwiftUI.PickerStyle:5:23: note: 'wheel' has been explicitly marked unavailable here
3 | @available(tvOS, unavailable)
4 | extension PickerStyle where Self == WheelPickerStyle {
5 | public static var wheel: WheelPickerStyle { get }
| `- note: 'wheel' has been explicitly marked unavailable here
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:24:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
:
22 | .pickerStyle(.wheel)
23 | }
24 | .onChange(of: selectedCountry) {
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | viewModel.dataSource.lastCountrySelected = $0
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:25:13: error: cannot pass as inout because setter for 'viewModel' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
:
23 | }
24 | .onChange(of: selectedCountry) {
25 | viewModel.dataSource.lastCountrySelected = $0
| |- error: cannot pass as inout because setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:27:10: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
:
25 | viewModel.dataSource.lastCountrySelected = $0
26 | }
27 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:33:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
:
29 |
30 | @MainActor
31 | public init(selectedCountry: Binding<Country>, viewModel: CountryPickerWheelViewModel? = nil) {
| `- note: add @available attribute to enclosing initializer
32 | self._selectedCountry = selectedCountry
33 | self.viewModel = viewModel ?? CountryPickerWheelViewModel()
| |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:44:44: error: cannot find 'UIImage' in scope
42 | var body: some View {
43 | HStack {
44 | Image(uiImage: country.flag ?? UIImage())
| `- error: cannot find 'UIImage' in scope
45 | .resizable()
46 | .scaledToFit()
[5/14] Compiling CountryPicker CountryManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryManager.swift:17:40: error: 'ObservableObject' is only available in macOS 10.15 or newer
15 | // MARK: - CountryManagerInterface
16 | @MainActor
17 | public protocol CountryListDataSource: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
18 | func country(withCode code: String) -> Country?
19 | func allCountries(_ favoriteCountriesLocaleIdentifiers: [String]) -> [Country]
<unknown>:0: error: cannot convert value of type 'KeyPath<CountryManager, [Country]>' to expected argument type 'ReferenceWritableKeyPath<CountryManager, [Country]>'
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryManager.swift:56:6: error: 'Published' is only available in macOS 10.15 or newer
51 | // MARK: - CountryManager
52 | @MainActor
53 | public class CountryManager: CountryListDataSource {
| `- note: add @available attribute to enclosing class
54 |
55 | // MARK: - Variables
56 | @Published public var countries = [Country]()
| `- error: 'Published' is only available in macOS 10.15 or newer
57 |
58 | private var countriesFilePath: String? {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryManager.swift:68:52: error: 'language' is only available in macOS 13 or newer
51 | // MARK: - CountryManager
52 | @MainActor
53 | public class CountryManager: CountryListDataSource {
| `- note: add @available attribute to enclosing class
54 |
55 | // MARK: - Variables
:
64 |
65 | /// Current country returns the country object from Phone/Simulator locale
66 | open var currentCountry: Country? {
| `- note: add @available attribute to enclosing property
67 | if #available(iOS 16, *) {
68 | guard let countryCode = Locale.current.language.region?.identifier else {
| |- error: 'language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
69 | return nil
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryManager.swift:68:61: error: 'region' is only available in macOS 13 or newer
51 | // MARK: - CountryManager
52 | @MainActor
53 | public class CountryManager: CountryListDataSource {
| `- note: add @available attribute to enclosing class
54 |
55 | // MARK: - Variables
:
64 |
65 | /// Current country returns the country object from Phone/Simulator locale
66 | open var currentCountry: Country? {
| `- note: add @available attribute to enclosing property
67 | if #available(iOS 16, *) {
68 | guard let countryCode = Locale.current.language.region?.identifier else {
| |- error: 'region' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
69 | return nil
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryManager.swift:135:9: error: cannot pass as inout because setter for 'countries' is only available in macOS 10.15 or newer
104 | }
105 |
106 | public extension CountryManager {
| `- note: add @available attribute to enclosing extension
107 |
108 | /// Fetch country list from a given property list file path
:
130 | ///
131 | /// - Throws: Incase country list preperation fails to determine or convert data from a given URL file path.
132 | func loadCountries() throws {
| `- note: add @available attribute to enclosing instance method
133 | let url = URL(fileURLWithPath: countriesFilePath ?? "")
134 | let fetchedCountries = try fetchCountries(fromURLPath: url)
135 | countries.removeAll()
| |- error: cannot pass as inout because setter for 'countries' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | countries.append(contentsOf: fetchedCountries)
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryManager.swift:136:9: error: cannot pass as inout because setter for 'countries' is only available in macOS 10.15 or newer
104 | }
105 |
106 | public extension CountryManager {
| `- note: add @available attribute to enclosing extension
107 |
108 | /// Fetch country list from a given property list file path
:
130 | ///
131 | /// - Throws: Incase country list preperation fails to determine or convert data from a given URL file path.
132 | func loadCountries() throws {
| `- note: add @available attribute to enclosing instance method
133 | let url = URL(fileURLWithPath: countriesFilePath ?? "")
134 | let fetchedCountries = try fetchCountries(fromURLPath: url)
135 | countries.removeAll()
136 | countries.append(contentsOf: fetchedCountries)
| |- error: cannot pass as inout because setter for 'countries' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 | }
138 |
[6/14] Compiling CountryPicker Country.swift
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Country.swift:38:20: error: cannot find type 'UIImage' in scope
36 |
37 | /// Image (Flag) of country
38 | open var flag: UIImage? {
| `- error: cannot find type 'UIImage' in scope
39 | if image != nil {
40 | return image
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Country.swift:55:24: error: cannot find type 'UIImage' in scope
53 |
54 | var imagePath: String
55 | private var image: UIImage?
| `- error: cannot find type 'UIImage' in scope
56 |
57 | // MARK: - Initializers
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Country.swift:49:23: error: cannot find 'UIImage' in scope
47 | #endif
48 |
49 | let flagImg = UIImage(named: imagePath, in: bundle, compatibleWith: nil)
| `- error: cannot find 'UIImage' in scope
50 | image = flagImg
51 | return image
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Country.swift:49:77: error: 'nil' requires a contextual type
47 | #endif
48 |
49 | let flagImg = UIImage(named: imagePath, in: bundle, compatibleWith: nil)
| `- error: 'nil' requires a contextual type
50 | image = flagImg
51 | return image
[7/15] Compiling CountryPicker Configuration.swift
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:15:27: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
15 | public let labelFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
16 | public let labelColor: Color
17 | public let detailFont: Font
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:16:28: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
15 | public let labelFont: Font
16 | public let labelColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | public let detailFont: Font
18 | public let detailColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:17:28: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
15 | public let labelFont: Font
16 | public let labelColor: Color
17 | public let detailFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
18 | public let detailColor: Color
19 | public let isCountryFlagHidden: Bool
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:18:29: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
16 | public let labelColor: Color
17 | public let detailFont: Font
18 | public let detailColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | public let isCountryFlagHidden: Bool
20 | public let isCountryDialHidden: Bool
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:25:20: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
| `- error: 'Font' is only available in macOS 10.15 or newer
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:26:21: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:27:21: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
| `- error: 'Font' is only available in macOS 10.15 or newer
28 | detailColor: Color = .secondary,
29 | isCountryFlagHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:28:22: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
| `- error: 'Color' is only available in macOS 10.15 or newer
29 | isCountryFlagHidden: Bool = false,
30 | isCountryDialHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:25:28: error: 'title2' is only available in macOS 11.0 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
| `- error: 'title2' is only available in macOS 11.0 or newer
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:26:30: error: 'primary' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:27:29: error: 'footnote' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
| `- error: 'footnote' is only available in macOS 10.15 or newer
28 | detailColor: Color = .secondary,
29 | isCountryFlagHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:28:31: error: 'secondary' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
29 | isCountryFlagHidden: Bool = false,
30 | isCountryDialHidden: Bool = false,
[8/15] Compiling CountryPicker Constant.swift
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:15:27: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
15 | public let labelFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
16 | public let labelColor: Color
17 | public let detailFont: Font
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:16:28: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
15 | public let labelFont: Font
16 | public let labelColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | public let detailFont: Font
18 | public let detailColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:17:28: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
15 | public let labelFont: Font
16 | public let labelColor: Color
17 | public let detailFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
18 | public let detailColor: Color
19 | public let isCountryFlagHidden: Bool
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:18:29: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
16 | public let labelColor: Color
17 | public let detailFont: Font
18 | public let detailColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | public let isCountryFlagHidden: Bool
20 | public let isCountryDialHidden: Bool
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:25:20: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
| `- error: 'Font' is only available in macOS 10.15 or newer
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:26:21: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:27:21: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
| `- error: 'Font' is only available in macOS 10.15 or newer
28 | detailColor: Color = .secondary,
29 | isCountryFlagHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:28:22: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
| `- error: 'Color' is only available in macOS 10.15 or newer
29 | isCountryFlagHidden: Bool = false,
30 | isCountryDialHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:25:28: error: 'title2' is only available in macOS 11.0 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
| `- error: 'title2' is only available in macOS 11.0 or newer
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:26:30: error: 'primary' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:27:29: error: 'footnote' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
| `- error: 'footnote' is only available in macOS 10.15 or newer
28 | detailColor: Color = .secondary,
29 | isCountryFlagHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:28:31: error: 'secondary' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
29 | isCountryFlagHidden: Bool = false,
30 | isCountryDialHidden: Bool = false,
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/15] Emitting module CountryPicker
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:15:27: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
15 | public let labelFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
16 | public let labelColor: Color
17 | public let detailFont: Font
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:16:28: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
15 | public let labelFont: Font
16 | public let labelColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | public let detailFont: Font
18 | public let detailColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:17:28: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
15 | public let labelFont: Font
16 | public let labelColor: Color
17 | public let detailFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
18 | public let detailColor: Color
19 | public let isCountryFlagHidden: Bool
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:18:29: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
16 | public let labelColor: Color
17 | public let detailFont: Font
18 | public let detailColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | public let isCountryFlagHidden: Bool
20 | public let isCountryDialHidden: Bool
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:25:20: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
| `- error: 'Font' is only available in macOS 10.15 or newer
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:26:21: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:27:21: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
| `- error: 'Font' is only available in macOS 10.15 or newer
28 | detailColor: Color = .secondary,
29 | isCountryFlagHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:28:22: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
| `- error: 'Color' is only available in macOS 10.15 or newer
29 | isCountryFlagHidden: Bool = false,
30 | isCountryDialHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:25:28: error: 'title2' is only available in macOS 11.0 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
| `- error: 'title2' is only available in macOS 11.0 or newer
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:26:30: error: 'primary' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:27:29: error: 'footnote' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
| `- error: 'footnote' is only available in macOS 10.15 or newer
28 | detailColor: Color = .secondary,
29 | isCountryFlagHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:28:31: error: 'secondary' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
29 | isCountryFlagHidden: Bool = false,
30 | isCountryDialHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Country.swift:38:20: error: cannot find type 'UIImage' in scope
36 |
37 | /// Image (Flag) of country
38 | open var flag: UIImage? {
| `- error: cannot find type 'UIImage' in scope
39 | if image != nil {
40 | return image
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Country.swift:55:24: error: cannot find type 'UIImage' in scope
53 |
54 | var imagePath: String
55 | private var image: UIImage?
| `- error: cannot find type 'UIImage' in scope
56 |
57 | // MARK: - Initializers
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryManager.swift:17:40: error: 'ObservableObject' is only available in macOS 10.15 or newer
15 | // MARK: - CountryManagerInterface
16 | @MainActor
17 | public protocol CountryListDataSource: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
18 | func country(withCode code: String) -> Country?
19 | func allCountries(_ favoriteCountriesLocaleIdentifiers: [String]) -> [Country]
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryManager.swift:56:6: error: 'Published' is only available in macOS 10.15 or newer
51 | // MARK: - CountryManager
52 | @MainActor
53 | public class CountryManager: CountryListDataSource {
| `- note: add @available attribute to enclosing class
54 |
55 | // MARK: - Variables
56 | @Published public var countries = [Country]()
| `- error: 'Published' is only available in macOS 10.15 or newer
57 |
58 | private var countriesFilePath: String? {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:21:20: error: 'presentationMode' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
| `- error: 'presentationMode' is only available in macOS 10.15 or newer
22 |
23 | @State private var filterCountries = [Country]()
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
| `- error: 'Environment' is only available in macOS 10.15 or newer
22 |
23 | @State private var filterCountries = [Country]()
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
22 |
23 | @State private var filterCountries = [Country]()
| `- error: 'State' is only available in macOS 10.15 or newer
24 | @State private var applySearch = false
25 | @State private var searchText = ""
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
22 |
23 | @State private var filterCountries = [Country]()
24 | @State private var applySearch = false
| `- error: 'State' is only available in macOS 10.15 or newer
25 | @State private var searchText = ""
26 | @Binding private var selectedCountry: Country
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:25:6: error: 'State' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
:
23 | @State private var filterCountries = [Country]()
24 | @State private var applySearch = false
25 | @State private var searchText = ""
| `- error: 'State' is only available in macOS 10.15 or newer
26 | @Binding private var selectedCountry: Country
27 |
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:26:6: error: 'Binding' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
:
24 | @State private var applySearch = false
25 | @State private var searchText = ""
26 | @Binding private var selectedCountry: Country
| `- error: 'Binding' is only available in macOS 10.15 or newer
27 |
28 | let configuration: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:38:27: error: 'Binding' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
:
34 |
35 | public
36 | init(manager: any CountryListDataSource = CountryManager.shared,
| `- note: add @available attribute to enclosing initializer
37 | configuration: Configuration = Configuration(),
38 | selectedCountry: Binding<Country>) {
| `- error: 'Binding' is only available in macOS 10.15 or newer
39 | self.manager = manager
40 | self.configuration = configuration
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:44:27: error: 'View' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
:
42 | }
43 |
44 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
45 | NavigationView {
46 | List(searchResults) { country in
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:83:6: error: 'Binding' is only available in macOS 10.15 or newer
75 | }
76 |
77 | struct CountryCell: View {
| `- note: add @available attribute to enclosing struct
78 |
79 | let country: Country
:
81 | let configuration: Configuration
82 |
83 | @Binding var selectedCountry: Country
| `- error: 'Binding' is only available in macOS 10.15 or newer
84 |
85 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:85:20: error: 'View' is only available in macOS 10.15 or newer
75 | }
76 |
77 | struct CountryCell: View {
| `- note: add @available attribute to enclosing struct
78 |
79 | let country: Country
:
83 | @Binding var selectedCountry: Country
84 |
85 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
86 | Button {
87 | selectedCountry = country
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:133:31: error: 'View' is only available in macOS 10.15 or newer
130 | }
131 |
132 | struct CountryPickerView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
133 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
134 | CountryPickerView(
135 | configuration: Configuration(),
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:12:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
13 | @Binding public var selectedCountry: Country
14 |
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:15:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
13 | @Binding public var selectedCountry: Country
14 |
15 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | VStack {
17 | Picker("", selection: $selectedCountry) {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:31:34: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWheelView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @ObservedObject public var viewModel: CountryPickerWheelViewModel
:
29 |
30 | @MainActor
31 | public init(selectedCountry: Binding<Country>, viewModel: CountryPickerWheelViewModel? = nil) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self._selectedCountry = selectedCountry
33 | self.viewModel = viewModel ?? CountryPickerWheelViewModel()
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:42:20: error: 'View' is only available in macOS 10.15 or newer
36 | }
37 |
38 | struct CountryPickerWheelItem: View {
| `- note: add @available attribute to enclosing struct
39 |
40 | let country: Country
41 |
42 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
43 | HStack {
44 | Image(uiImage: country.flag ?? UIImage())
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelView.swift:54:31: error: 'View' is only available in macOS 10.15 or newer
51 | }
52 |
53 | struct CountryPickerWheelView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
54 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
55 | return CountryPickerWheelView(selectedCountry: .constant(.init(countryCode: "IN")))
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelViewModel.swift:12:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 |
11 | @MainActor final
12 | public class CountryPickerWheelViewModel: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 |
14 | internal let countries: [Country]
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSectionViewModel.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
9 |
10 | @MainActor public final
11 | class CountryPickerWithSectionViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | @Published var sections: [Section] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
14 | @Published var selectedCountry: Country
15 |
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSectionViewModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
9 |
10 | @MainActor public final
11 | class CountryPickerWithSectionViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | @Published var sections: [Section] = []
14 | @Published var selectedCountry: Country
| `- error: 'Published' is only available in macOS 10.15 or newer
15 |
16 | private let dataService: any CountryListDataSource
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:12:20: error: 'presentationMode' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
| `- error: 'presentationMode' is only available in macOS 10.15 or newer
13 |
14 | @ObservedObject var viewModel: CountryPickerWithSectionViewModel
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | @ObservedObject var viewModel: CountryPickerWithSectionViewModel
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:14:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
13 |
14 | @ObservedObject var viewModel: CountryPickerWithSectionViewModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
15 | @State var searchText: String
16 | @Binding private var selectedCountry: Country
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
13 |
14 | @ObservedObject var viewModel: CountryPickerWithSectionViewModel
15 | @State var searchText: String
| `- error: 'State' is only available in macOS 10.15 or newer
16 | @Binding private var selectedCountry: Country
17 |
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
:
14 | @ObservedObject var viewModel: CountryPickerWithSectionViewModel
15 | @State var searchText: String
16 | @Binding private var selectedCountry: Country
| `- error: 'Binding' is only available in macOS 10.15 or newer
17 |
18 | let configuration: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:23:27: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
:
18 | let configuration: Configuration
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | configuration: Configuration = Configuration(),
22 | searchText: String = "",
23 | selectedCountry: Binding<Country>) {
| `- error: 'Binding' is only available in macOS 10.15 or newer
24 | self.configuration = configuration
25 | _searchText = State(initialValue: searchText)
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:30:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
:
28 | }
29 |
30 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
31 | NavigationView {
32 | ScrollViewReader { scrollView in
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:89:31: error: 'View' is only available in macOS 10.15 or newer
86 |
87 |
88 | struct CountryPickerWithSections_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
89 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
90 | CountryPickerWithSections(
91 | configuration: Configuration(),
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:102:20: error: 'View' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
[10/15] Compiling CountryPicker CountryPickerWithSectionViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSectionViewModel.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
9 |
10 | @MainActor public final
11 | class CountryPickerWithSectionViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | @Published var sections: [Section] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
14 | @Published var selectedCountry: Country
15 |
<unknown>:0: error: cannot convert value of type 'KeyPath<CountryPickerWithSectionViewModel, [Section]>' to expected argument type 'ReferenceWritableKeyPath<CountryPickerWithSectionViewModel, [Section]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CountryPickerWithSectionViewModel, Country>' to expected argument type 'ReferenceWritableKeyPath<CountryPickerWithSectionViewModel, Country>'
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSectionViewModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
9 |
10 | @MainActor public final
11 | class CountryPickerWithSectionViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | @Published var sections: [Section] = []
14 | @Published var selectedCountry: Country
| `- error: 'Published' is only available in macOS 10.15 or newer
15 |
16 | private let dataService: any CountryListDataSource
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSectionViewModel.swift:25:9: error: setter for 'selectedCountry' is only available in macOS 10.15 or newer
9 |
10 | @MainActor public final
11 | class CountryPickerWithSectionViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | @Published var sections: [Section] = []
:
17 | private let mapper: SectionMapper
18 |
19 | internal init(dataService: any CountryListDataSource = CountryManager.shared,
| `- note: add @available attribute to enclosing initializer
20 | mapper: SectionMapper = SectionMapper(favoriteCountriesLocaleIdentifiers: []),
21 | selectedCountry: Country
:
23 | self.dataService = dataService
24 | self.mapper = mapper
25 | self.selectedCountry = selectedCountry
| |- error: setter for 'selectedCountry' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | sections = mapper.mapIntoSection(countries: dataService.allCountries(mapper.favoriteCountriesLocaleIdentifiers))
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSectionViewModel.swift:26:9: error: setter for 'sections' is only available in macOS 10.15 or newer
9 |
10 | @MainActor public final
11 | class CountryPickerWithSectionViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | @Published var sections: [Section] = []
:
17 | private let mapper: SectionMapper
18 |
19 | internal init(dataService: any CountryListDataSource = CountryManager.shared,
| `- note: add @available attribute to enclosing initializer
20 | mapper: SectionMapper = SectionMapper(favoriteCountriesLocaleIdentifiers: []),
21 | selectedCountry: Country
:
24 | self.mapper = mapper
25 | self.selectedCountry = selectedCountry
26 | sections = mapper.mapIntoSection(countries: dataService.allCountries(mapper.favoriteCountriesLocaleIdentifiers))
| |- error: setter for 'sections' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSectionViewModel.swift:31:9: error: setter for 'sections' is only available in macOS 10.15 or newer
9 |
10 | @MainActor public final
11 | class CountryPickerWithSectionViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | @Published var sections: [Section] = []
:
27 | }
28 |
29 | func filterWithText(_ text: String) {
| `- note: add @available attribute to enclosing instance method
30 | let filteredCountries = text.isEmpty ? dataService.allCountries(mapper.favoriteCountriesLocaleIdentifiers) : dataService.filterCountries(searchText: text)
31 | sections = mapper.mapIntoSection(countries: filteredCountries)
| |- error: setter for 'sections' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | }
33 |
[11/15] Compiling CountryPicker resource_bundle_accessor.swift
[12/15] Compiling CountryPicker SectionMapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Country.swift:55:24: error: cannot find type 'UIImage' in scope
53 |
54 | var imagePath: String
55 | private var image: UIImage?
| `- error: cannot find type 'UIImage' in scope
56 |
57 | // MARK: - Initializers
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Country.swift:38:20: error: cannot find type 'UIImage' in scope
36 |
37 | /// Image (Flag) of country
38 | open var flag: UIImage? {
| `- error: cannot find type 'UIImage' in scope
39 | if image != nil {
40 | return image
[13/15] Compiling CountryPicker CountryPickerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:21:20: error: 'presentationMode' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
| `- error: 'presentationMode' is only available in macOS 10.15 or newer
22 |
23 | @State private var filterCountries = [Country]()
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
| `- error: 'Environment' is only available in macOS 10.15 or newer
22 |
23 | @State private var filterCountries = [Country]()
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
22 |
23 | @State private var filterCountries = [Country]()
| `- error: 'State' is only available in macOS 10.15 or newer
24 | @State private var applySearch = false
25 | @State private var searchText = ""
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
22 |
23 | @State private var filterCountries = [Country]()
24 | @State private var applySearch = false
| `- error: 'State' is only available in macOS 10.15 or newer
25 | @State private var searchText = ""
26 | @Binding private var selectedCountry: Country
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:25:6: error: 'State' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
:
23 | @State private var filterCountries = [Country]()
24 | @State private var applySearch = false
25 | @State private var searchText = ""
| `- error: 'State' is only available in macOS 10.15 or newer
26 | @Binding private var selectedCountry: Country
27 |
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:26:6: error: 'Binding' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
:
24 | @State private var applySearch = false
25 | @State private var searchText = ""
26 | @Binding private var selectedCountry: Country
| `- error: 'Binding' is only available in macOS 10.15 or newer
27 |
28 | let configuration: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:38:27: error: 'Binding' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
:
34 |
35 | public
36 | init(manager: any CountryListDataSource = CountryManager.shared,
| `- note: add @available attribute to enclosing initializer
37 | configuration: Configuration = Configuration(),
38 | selectedCountry: Binding<Country>) {
| `- error: 'Binding' is only available in macOS 10.15 or newer
39 | self.manager = manager
40 | self.configuration = configuration
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:25:28: error: 'title2' is only available in macOS 11.0 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
| `- error: 'title2' is only available in macOS 11.0 or newer
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:26:30: error: 'primary' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:27:29: error: 'footnote' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
| `- error: 'footnote' is only available in macOS 10.15 or newer
28 | detailColor: Color = .secondary,
29 | isCountryFlagHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:28:31: error: 'secondary' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
29 | isCountryFlagHidden: Bool = false,
30 | isCountryDialHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:44:27: error: 'View' is only available in macOS 10.15 or newer
17 |
18 | public
19 | struct CountryPickerView: View {
| `- note: add @available attribute to enclosing struct
20 |
21 | @Environment(\.presentationMode) var presentationMode
:
42 | }
43 |
44 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
45 | NavigationView {
46 | List(searchResults) { country in
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:83:6: error: 'Binding' is only available in macOS 10.15 or newer
75 | }
76 |
77 | struct CountryCell: View {
| `- note: add @available attribute to enclosing struct
78 |
79 | let country: Country
:
81 | let configuration: Configuration
82 |
83 | @Binding var selectedCountry: Country
| `- error: 'Binding' is only available in macOS 10.15 or newer
84 |
85 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:85:20: error: 'View' is only available in macOS 10.15 or newer
75 | }
76 |
77 | struct CountryCell: View {
| `- note: add @available attribute to enclosing struct
78 |
79 | let country: Country
:
83 | @Binding var selectedCountry: Country
84 |
85 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
86 | Button {
87 | selectedCountry = country
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:133:31: error: 'View' is only available in macOS 10.15 or newer
130 | }
131 |
132 | struct CountryPickerView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
133 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
134 | CountryPickerView(
135 | configuration: Configuration(),
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:61:10: error: ambiguous use of 'toolbar(content:)'
59 | }
60 | }
61 | .toolbar {
| `- error: ambiguous use of 'toolbar(content:)'
62 | ToolbarItem(placement: .cancellationAction) {
63 | Button(action: {
SwiftUI.View:3:29: note: found this candidate in module 'SwiftUI'
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | extension View {
3 | nonisolated public func toolbar<Content>(@ViewBuilder content: () -> Content) -> some View where Content : View
| `- note: found this candidate in module 'SwiftUI'
4 |
5 | nonisolated public func toolbar<Content>(@ToolbarContentBuilder content: () -> Content) -> some View where Content : ToolbarContent
| `- note: found this candidate in module 'SwiftUI'
6 |
7 | nonisolated public func toolbar<Content>(id: String, @ToolbarContentBuilder content: () -> Content) -> some View where Content : CustomizableToolbarContent
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Country.swift:38:20: error: cannot find type 'UIImage' in scope
36 |
37 | /// Image (Flag) of country
38 | open var flag: UIImage? {
| `- error: cannot find type 'UIImage' in scope
39 | if image != nil {
40 | return image
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerView.swift:90:34: error: extraneous argument label 'uiImage:' in call
88 | } label: {
89 | HStack {
90 | let image = Image(uiImage: country.flag ?? .init())
| `- error: extraneous argument label 'uiImage:' in call
91 | .resizable()
92 |
[14/15] Compiling CountryPicker CountryPickerWheelViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWheelViewModel.swift:12:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 |
11 | @MainActor final
12 | public class CountryPickerWheelViewModel: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 |
14 | internal let countries: [Country]
[15/15] Compiling CountryPicker CountryPickerWithSections.swift
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:12:20: error: 'presentationMode' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
| `- error: 'presentationMode' is only available in macOS 10.15 or newer
13 |
14 | @ObservedObject var viewModel: CountryPickerWithSectionViewModel
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | @ObservedObject var viewModel: CountryPickerWithSectionViewModel
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:14:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
13 |
14 | @ObservedObject var viewModel: CountryPickerWithSectionViewModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
15 | @State var searchText: String
16 | @Binding private var selectedCountry: Country
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
13 |
14 | @ObservedObject var viewModel: CountryPickerWithSectionViewModel
15 | @State var searchText: String
| `- error: 'State' is only available in macOS 10.15 or newer
16 | @Binding private var selectedCountry: Country
17 |
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
:
14 | @ObservedObject var viewModel: CountryPickerWithSectionViewModel
15 | @State var searchText: String
16 | @Binding private var selectedCountry: Country
| `- error: 'Binding' is only available in macOS 10.15 or newer
17 |
18 | let configuration: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:23:27: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
:
18 | let configuration: Configuration
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | configuration: Configuration = Configuration(),
22 | searchText: String = "",
23 | selectedCountry: Binding<Country>) {
| `- error: 'Binding' is only available in macOS 10.15 or newer
24 | self.configuration = configuration
25 | _searchText = State(initialValue: searchText)
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:25:28: error: 'title2' is only available in macOS 11.0 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
| `- error: 'title2' is only available in macOS 11.0 or newer
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:26:30: error: 'primary' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:27:29: error: 'footnote' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
| `- error: 'footnote' is only available in macOS 10.15 or newer
28 | detailColor: Color = .secondary,
29 | isCountryFlagHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/Configuration.swift:28:31: error: 'secondary' is only available in macOS 10.15 or newer
10 |
11 | public
12 | struct Configuration {
| `- note: add @available attribute to enclosing struct
13 |
14 | public let flagStyle: CountryFlagStyle
:
21 | public let navigationTitleText: String
22 |
23 | public init(
| `- note: add @available attribute to enclosing initializer
24 | flagStyle: CountryFlagStyle = CountryFlagStyle.corner,
25 | labelFont: Font = .title2,
26 | labelColor: Color = .primary,
27 | detailFont: Font = .footnote,
28 | detailColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
29 | isCountryFlagHidden: Bool = false,
30 | isCountryDialHidden: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:30:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
:
28 | }
29 |
30 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
31 | NavigationView {
32 | ScrollViewReader { scrollView in
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:89:31: error: 'View' is only available in macOS 10.15 or newer
86 |
87 |
88 | struct CountryPickerWithSections_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
89 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
90 | CountryPickerWithSections(
91 | configuration: Configuration(),
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:102:20: error: 'View' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:25:24: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
:
18 | let configuration: Configuration
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | configuration: Configuration = Configuration(),
22 | searchText: String = "",
23 | selectedCountry: Binding<Country>) {
24 | self.configuration = configuration
25 | _searchText = State(initialValue: searchText)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | _selectedCountry = selectedCountry
27 | viewModel = .init(selectedCountry: selectedCountry.wrappedValue)
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:27:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 | public
10 | struct CountryPickerWithSections: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.presentationMode) var presentationMode
:
18 | let configuration: Configuration
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | configuration: Configuration = Configuration(),
22 | searchText: String = "",
:
25 | _searchText = State(initialValue: searchText)
26 | _selectedCountry = selectedCountry
27 | viewModel = .init(selectedCountry: selectedCountry.wrappedValue)
| |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:30:32: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
28 | }
29 |
30 | public var body: some View {
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
31 | NavigationView {
32 | ScrollViewReader { scrollView in
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:103:9: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | ForEach(titles, id: \.self) { title in
105 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:103:9: error: 'VStack' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | ForEach(titles, id: \.self) { title in
105 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:103:9: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | ForEach(titles, id: \.self) { title in
105 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:104:13: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | HStack {
106 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:104:13: error: 'ForEach' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | HStack {
106 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:104:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | HStack {
106 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:105:17: error: 'HStack' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
105 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | Spacer()
107 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:106:21: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
105 | HStack {
106 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Button(action: {
108 | withAnimation {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:106:21: error: 'Spacer' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
105 | HStack {
106 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Button(action: {
108 | withAnimation {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:107:25: error: 'Button' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
105 | HStack {
106 | Spacer()
107 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | withAnimation {
109 | onClick(title)
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:108:29: error: 'withAnimation' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
:
106 | Spacer()
107 | Button(action: {
108 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | onClick(title)
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:112:29: error: 'Text' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
:
110 | }
111 | }, label: {
112 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | .font(.system(size: 12))
114 | .padding(.trailing, 7)
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:113:34: error: 'font' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
:
111 | }, label: {
112 | Text(title)
113 | .font(.system(size: 12))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | .padding(.trailing, 7)
115 | })
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:113:40: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
:
111 | }, label: {
112 | Text(title)
113 | .font(.system(size: 12))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
114 | .padding(.trailing, 7)
115 | })
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:114:34: error: 'padding' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
:
112 | Text(title)
113 | .font(.system(size: 12))
114 | .padding(.trailing, 7)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | })
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:105:24: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
105 | HStack {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | Spacer()
107 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:103:16: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| `- note: add @available attribute to enclosing property
103 | VStack {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | ForEach(titles, id: \.self) { title in
105 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:102:25: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| | |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
/Users/admin/builder/spi-builder-workspace/Sources/CountryPicker/CountryPickerWithSections.swift:102:25: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
96 | }
97 |
98 | struct SectionIndexView: View {
| `- note: add @available attribute to enclosing struct
99 | let titles: [String]
100 | let onClick: (String)->Void
101 |
102 | var body: some View {
| | |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
103 | VStack {
104 | ForEach(titles, id: \.self) { title in
BUILD FAILURE 6.0 macosSpm