Build Information
Failed to build PayKit, reference v0.6.3 (c96d4d
), with Swift 6.0 for macOS (SPM) on 17 Apr 2025 16:51:42 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cashapp/cash-app-pay-ios-sdk.git
Reference: v0.6.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/cashapp/cash-app-pay-ios-sdk
* tag v0.6.3 -> FETCH_HEAD
HEAD is now at c96d4d1 Merge pull request #36 from cashapp/release-0.6.3
Cloned https://github.com/cashapp/cash-app-pay-ios-sdk.git
Revision (git rev-parse @):
c96d4d1f0ad1723df6257bfecbda97b35b5b89f8
SUCCESS checkout https://github.com/cashapp/cash-app-pay-ios-sdk.git at v0.6.3
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git
Fetching https://github.com/SwiftGen/SwiftGenPlugin.git
[1/121] Fetching swiftgenplugin
[110/13266] Fetching swiftgenplugin, swift-snapshot-testing
Fetched https://github.com/SwiftGen/SwiftGenPlugin.git from cache (2.32s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (2.32s)
Computing version for https://github.com/SwiftGen/SwiftGenPlugin.git
Computed https://github.com/SwiftGen/SwiftGenPlugin.git at 6.6.2 (0.62s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.18.3 (0.46s)
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/swiftlang/swift-syntax
[1/4581] Fetching swift-custom-dump
[4582/74734] Fetching swift-custom-dump, swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (3.46s)
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (3.46s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (0.43s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5349] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.21s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (0.64s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.45s)
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.5.2
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 601.0.1
Creating working copy for https://github.com/SwiftGen/SwiftGenPlugin.git
Working copy of https://github.com/SwiftGen/SwiftGenPlugin.git resolved at 6.6.2
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing.git
Working copy of https://github.com/pointfreeco/swift-snapshot-testing.git resolved at 1.18.3
[16375/3450738] Downloading https://github.com/SwiftGen/SwiftGen/releases/download/6.6.2/swiftgen-6.6.2.artifactbundle.zip
Downloading binary artifact https://github.com/SwiftGen/SwiftGen/releases/download/6.6.2/swiftgen-6.6.2.artifactbundle.zip
Downloaded https://github.com/SwiftGen/SwiftGen/releases/download/6.6.2/swiftgen-6.6.2.artifactbundle.zip (1.20s)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "cash-app-pay-ios-sdk",
"name": "PayKit",
"url": "https://github.com/cashapp/cash-app-pay-ios-sdk.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/cash-app-pay-ios-sdk",
"dependencies": [
{
"identity": "swiftgenplugin",
"name": "SwiftGenPlugin",
"url": "https://github.com/SwiftGen/SwiftGenPlugin.git",
"version": "6.6.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftGenPlugin",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/cashapp/cash-app-pay-ios-sdk.git
[1/645] Fetching cash-app-pay-ios-sdk
Fetched https://github.com/cashapp/cash-app-pay-ios-sdk.git from cache (1.01s)
Fetching https://github.com/SwiftGen/SwiftGenPlugin.git from cache
Fetched https://github.com/SwiftGen/SwiftGenPlugin.git from cache (0.44s)
Computing version for https://github.com/SwiftGen/SwiftGenPlugin.git
Computed https://github.com/SwiftGen/SwiftGenPlugin.git at 6.6.2 (0.03s)
Creating working copy for https://github.com/cashapp/cash-app-pay-ios-sdk.git
Working copy of https://github.com/cashapp/cash-app-pay-ios-sdk.git resolved at v0.6.3 (c96d4d1)
Creating working copy for https://github.com/SwiftGen/SwiftGenPlugin.git
Working copy of https://github.com/SwiftGen/SwiftGenPlugin.git resolved at 6.6.2
Fetching binary artifact https://github.com/SwiftGen/SwiftGen/releases/download/6.6.2/swiftgen-6.6.2.artifactbundle.zip from cache
Fetched https://github.com/SwiftGen/SwiftGen/releases/download/6.6.2/swiftgen-6.6.2.artifactbundle.zip from cache (0.20s)
warning: '.resolve-product-dependencies': dependency 'cash-app-pay-ios-sdk' is not used by any target
Found 1 product dependencies
- SwiftGenPlugin
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/cashapp/cash-app-pay-ios-sdk.git
https://github.com/cashapp/cash-app-pay-ios-sdk.git
{
"default_localization" : "en",
"dependencies" : [
{
"identity" : "swiftgenplugin",
"requirement" : {
"range" : [
{
"lower_bound" : "6.6.2",
"upper_bound" : "7.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftGen/SwiftGenPlugin.git"
},
{
"identity" : "swift-snapshot-testing",
"requirement" : {
"range" : [
{
"lower_bound" : "1.9.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-snapshot-testing.git"
}
],
"manifest_display_name" : "PayKit",
"name" : "PayKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "PayKit",
"targets" : [
"PayKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "PayKitUI",
"targets" : [
"PayKitUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PayKitUITests",
"module_type" : "SwiftTarget",
"name" : "PayKitUITests",
"path" : "Tests/PayKitUITests",
"product_dependencies" : [
"SnapshotTesting"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/PayKitUITests/__Snapshots__",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"BaseSnapshotTestCase.swift",
"CashAppPayButtonSnapshotTests.swift",
"CashAppPayButtonViewSnapshotTests.swift",
"CashAppPaymentMethodSnapshotTests.swift",
"CashAppPaymentMethodViewSnapshotTests.swift"
],
"target_dependencies" : [
"PayKitUI"
],
"type" : "test"
},
{
"c99name" : "PayKitUI",
"module_type" : "SwiftTarget",
"name" : "PayKitUI",
"path" : "Sources/PayKitUI",
"product_dependencies" : [
"SwiftGenPlugin"
],
"product_memberships" : [
"PayKitUI"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/PrivacyInfo.xcprivacy",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/Shared/Assets/Resources/Colors.xcassets",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/Shared/Assets/Resources/Images.xcassets",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/Shared/Assets/Resources/en.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/custom-xcassets-template.stencil",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/swiftgen.yml",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Shared/Generated/Assets.swift",
"Shared/Generated/Strings.generated.swift",
"Shared/Style/SizingCategory.swift",
"SwiftUI/CashAppPayButtonView.swift",
"SwiftUI/CashAppPaymentMethodView.swift",
"UIKit/CashAppPayButton.swift",
"UIKit/CashAppPaymentMethod.swift",
"UIKit/Extensions/UIColor+SwiftUI.swift"
],
"type" : "library"
},
{
"c99name" : "PayKitTests",
"module_type" : "SwiftTarget",
"name" : "PayKitTests",
"path" : "Tests/PayKitTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/PayKitTests/Resources/Fixtures",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"APIErrorTests.swift",
"AccessModifierTests.swift",
"AnalyticsClientTests.swift",
"AnalyticsDataSourceTests.swift",
"AnalyticsEventTests.swift",
"AnalyticsServiceTests.swift",
"CashAppPay+EndpointTest.swift",
"CashAppPayState+ObjCTests.swift",
"CashAppPayTests.swift",
"CreateCustomerRequestParamsTests.swift",
"CustomerRequest+ExtensionsTests.swift",
"CustomerRequest+ObjCTests.swift",
"CustomerRequestTests.swift",
"DateFormatterTests.swift",
"Errors+ObjCTests.swift",
"Helpers/Difference.swift",
"Helpers/MockNotificationCenter.swift",
"Helpers/MockRestService.swift",
"Helpers/MockURLProtocol.swift",
"IntegrationErrorTests.swift",
"LoggableTests.swift",
"NetworkManagerTests.swift",
"ObjcWrapperTests.swift",
"ResilientRestServiceTests.swift",
"Resources/XCTestCase+Fixtures.swift",
"RetryPolicyTests.swift",
"StateMachineAnalyticsTests.swift",
"StateMachineTests.swift",
"UnexpectedErrorTests.swift",
"UpdateCustomerRequestParamsTests.swift",
"UserAgentTests.swift"
],
"target_dependencies" : [
"PayKit"
],
"type" : "test"
},
{
"c99name" : "PayKit",
"module_type" : "SwiftTarget",
"name" : "PayKit",
"path" : "Sources/PayKit",
"product_memberships" : [
"PayKit"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/PayKit/PrivacyInfo.xcprivacy",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"CashAppPay.swift",
"CustomerRequest+Extensions.swift",
"CustomerRequest.swift",
"Errors.swift",
"JSONCoder+PayKit.swift",
"NetworkManager.swift",
"ObjcWrapper/CashAppPayState+ObjC.swift",
"ObjcWrapper/CustomerRequest+ObjC.swift",
"ObjcWrapper/Errors+ObjC.swift",
"ObjcWrapper/ObjCWrapper.swift",
"Services/Analytics/AnalyticsClient.swift",
"Services/Analytics/AnalyticsDataSource.swift",
"Services/Analytics/AnalyticsEvent.swift",
"Services/Analytics/AnalyticsService.swift",
"Services/Analytics/CashAppPayEndpoint+Analytics.swift",
"Services/Analytics/JSONEncoder+Analytics.swift",
"Services/Analytics/Loggable.swift",
"Services/Logger/Log.swift",
"Services/Networking/HTTPRequest.swift",
"Services/Networking/RESTService.swift",
"Services/Networking/RetryPolicy.swift",
"Services/Networking/UserAgent.swift",
"StateMachine.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin SwiftGen-Generate
[2/2] Compiling plugin SwiftGenPlugin
Building for debugging...
[2/14] Write sources
[3/14] Copying Info.plist
[3/14] Copying PrivacyInfo.xcprivacy
[3/14] Copying Localizable.strings
[3/14] Copying custom-xcassets-template.stencil
[3/14] Copying swiftgen.yml
[3/14] Copying PrivacyInfo.xcprivacy
[3/14] Copying Info.plist
[11/14] Copying Images.xcassets
[12/14] Copying Colors.xcassets
[13/14] Write swift-version-5BDAB9E9C0126B9D.txt
[15/47] Compiling PayKit RetryPolicy.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[16/47] Compiling PayKit UserAgent.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[17/49] Compiling PayKit ObjCWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[18/49] Compiling PayKit AnalyticsClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[19/49] Compiling PayKit AnalyticsDataSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[20/49] Compiling PayKit CashAppPayEndpoint+Analytics.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[21/49] Compiling PayKit JSONEncoder+Analytics.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[22/49] Compiling PayKit HTTPRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[23/49] Compiling PayKit RESTService.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/49] Emitting module PayKit
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[25/49] Compiling PayKit CashAppPay.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[26/49] Compiling PayKit CustomerRequest+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[27/49] Compiling PayKit CustomerRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[28/49] Compiling PayKit AnalyticsEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[29/49] Compiling PayKit AnalyticsService.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[30/49] Compiling PayKit Loggable.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[31/49] Compiling PayKit Log.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[32/49] Compiling PayKit CashAppPayState+ObjC.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[33/49] Compiling PayKit CustomerRequest+ObjC.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[34/49] Compiling PayKit Errors+ObjC.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[35/49] Compiling PayKit Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[36/49] Compiling PayKit JSONCoder+PayKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[37/49] Compiling PayKit NetworkManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[38/49] Compiling PayKit StateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[39/49] Compiling PayKit resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
error: emit-module command failed with exit code 1 (use -v to see invocation)
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:75:46: error: cannot find type 'UIColor' in scope
73 |
74 | /// Set the Cash Tag text color
75 | public func setCashTagTextColor(_ color: UIColor) {
| `- error: cannot find type 'UIColor' in scope
76 | guard let uiColor = color.swiftUIColor else { return }
77 | paymentMethodView.viewModel.cashTagTextColor = uiColor
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:81:40: error: cannot find type 'UIFont' in scope
79 |
80 | /// Set the Cash Tag font
81 | public func setCashTagFont(_ font: UIFont) {
| `- error: cannot find type 'UIFont' in scope
82 | paymentMethodView.viewModel.cashTagFont = Font(font)
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:20:36: error: cannot find type 'UIView' in scope
18 |
19 | @available(iOS 13.0, *)
20 | public class CashAppPaymentMethod: UIView {
| `- error: cannot find type 'UIView' in scope
21 |
22 | // MARK: - Private Properties
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:90:32: error: cannot find type 'UIView' in scope
88 | @available(iOS 13.0, *)
89 | private extension CashAppPaymentMethod {
90 | private func makeView() -> UIView? {
| `- error: cannot find type 'UIView' in scope
91 | guard let view = UIHostingController(rootView: paymentMethodView).view else {
92 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:30:33: warning: main actor-isolated property 'viewModel' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | /// View size of the view
29 | public var size: SizingCategory {
30 | get { paymentMethodView.viewModel.size }
| `- warning: main actor-isolated property 'viewModel' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
31 | set { paymentMethodView.viewModel.size = newValue }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPaymentMethodView.swift:25:32: note: property declared here
23 | // MARK: - Public Properties
24 |
25 | @ObservedObject public var viewModel: ViewModel
| `- note: property declared here
26 |
27 | private var currentAsset: SwiftUI.Image {
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:31:15: error: cannot pass as inout because setter for 'viewModel' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public class CashAppPaymentMethod: UIView {
| `- note: add @available attribute to enclosing class
21 |
22 | // MARK: - Private Properties
:
27 |
28 | /// View size of the view
29 | public var size: SizingCategory {
| `- note: add @available attribute to enclosing property
30 | get { paymentMethodView.viewModel.size }
31 | set { paymentMethodView.viewModel.size = newValue }
| |- error: cannot pass as inout because setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:31:15: error: setter for 'size' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public class CashAppPaymentMethod: UIView {
| `- note: add @available attribute to enclosing class
21 |
22 | // MARK: - Private Properties
:
27 |
28 | /// View size of the view
29 | public var size: SizingCategory {
| `- note: add @available attribute to enclosing property
30 | get { paymentMethodView.viewModel.size }
31 | set { paymentMethodView.viewModel.size = newValue }
| |- error: setter for 'size' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:31:33: warning: main actor-isolated property 'viewModel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
29 | public var size: SizingCategory {
30 | get { paymentMethodView.viewModel.size }
31 | set { paymentMethodView.viewModel.size = newValue }
| `- warning: main actor-isolated property 'viewModel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPaymentMethodView.swift:25:32: note: mutation of this property is only permitted within the actor
23 | // MARK: - Public Properties
24 |
25 | @ObservedObject public var viewModel: ViewModel
| `- note: mutation of this property is only permitted within the actor
26 |
27 | private var currentAsset: SwiftUI.Image {
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:36:33: warning: main actor-isolated property 'viewModel' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 | /// Cash Tag representing the customer.
35 | public var cashTag: String {
36 | get { paymentMethodView.viewModel.cashTag }
| `- warning: main actor-isolated property 'viewModel' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | set { paymentMethodView.viewModel.cashTag = newValue }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPaymentMethodView.swift:25:32: note: property declared here
23 | // MARK: - Public Properties
24 |
25 | @ObservedObject public var viewModel: ViewModel
| `- note: property declared here
26 |
27 | private var currentAsset: SwiftUI.Image {
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:37:15: error: cannot pass as inout because setter for 'viewModel' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public class CashAppPaymentMethod: UIView {
| `- note: add @available attribute to enclosing class
21 |
22 | // MARK: - Private Properties
:
33 |
34 | /// Cash Tag representing the customer.
35 | public var cashTag: String {
| `- note: add @available attribute to enclosing property
36 | get { paymentMethodView.viewModel.cashTag }
37 | set { paymentMethodView.viewModel.cashTag = newValue }
| |- error: cannot pass as inout because setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:37:15: error: setter for 'cashTag' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public class CashAppPaymentMethod: UIView {
| `- note: add @available attribute to enclosing class
21 |
22 | // MARK: - Private Properties
:
33 |
34 | /// Cash Tag representing the customer.
35 | public var cashTag: String {
| `- note: add @available attribute to enclosing property
36 | get { paymentMethodView.viewModel.cashTag }
37 | set { paymentMethodView.viewModel.cashTag = newValue }
| |- error: setter for 'cashTag' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:37:33: warning: main actor-isolated property 'viewModel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
35 | public var cashTag: String {
36 | get { paymentMethodView.viewModel.cashTag }
37 | set { paymentMethodView.viewModel.cashTag = newValue }
| `- warning: main actor-isolated property 'viewModel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPaymentMethodView.swift:25:32: note: mutation of this property is only permitted within the actor
23 | // MARK: - Public Properties
24 |
25 | @ObservedObject public var viewModel: ViewModel
| `- note: mutation of this property is only permitted within the actor
26 |
27 | private var currentAsset: SwiftUI.Image {
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:58:9: error: 'super' members cannot be referenced in a root class
56 | usePolychromeAsset: usePolychromeAsset
57 | )
58 | super.init(frame: .zero)
| `- error: 'super' members cannot be referenced in a root class
59 | guard let view = makeView() else { return }
60 | addSubview(view)
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:60:9: error: cannot find 'addSubview' in scope
58 | super.init(frame: .zero)
59 | guard let view = makeView() else { return }
60 | addSubview(view)
| `- error: cannot find 'addSubview' in scope
61 | NSLayoutConstraint.activate([
62 | view.leadingAnchor.constraint(equalTo: leadingAnchor),
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:62:52: error: cannot find 'leadingAnchor' in scope
60 | addSubview(view)
61 | NSLayoutConstraint.activate([
62 | view.leadingAnchor.constraint(equalTo: leadingAnchor),
| `- error: cannot find 'leadingAnchor' in scope
63 | view.trailingAnchor.constraint(equalTo: trailingAnchor),
64 | view.topAnchor.constraint(equalTo: topAnchor),
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:63:53: error: cannot find 'trailingAnchor' in scope
61 | NSLayoutConstraint.activate([
62 | view.leadingAnchor.constraint(equalTo: leadingAnchor),
63 | view.trailingAnchor.constraint(equalTo: trailingAnchor),
| `- error: cannot find 'trailingAnchor' in scope
64 | view.topAnchor.constraint(equalTo: topAnchor),
65 | view.bottomAnchor.constraint(equalTo: bottomAnchor),
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:64:48: error: cannot find 'topAnchor' in scope
62 | view.leadingAnchor.constraint(equalTo: leadingAnchor),
63 | view.trailingAnchor.constraint(equalTo: trailingAnchor),
64 | view.topAnchor.constraint(equalTo: topAnchor),
| `- error: cannot find 'topAnchor' in scope
65 | view.bottomAnchor.constraint(equalTo: bottomAnchor),
66 | ])
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:65:51: error: cannot find 'bottomAnchor' in scope
63 | view.trailingAnchor.constraint(equalTo: trailingAnchor),
64 | view.topAnchor.constraint(equalTo: topAnchor),
65 | view.bottomAnchor.constraint(equalTo: bottomAnchor),
| `- error: cannot find 'bottomAnchor' in scope
66 | ])
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/UIKit/CashAppPaymentMethod.swift:53:34: warning: call to main actor-isolated initializer 'init(size:cashTag:cashTagFont:cashTagTextColor:usePolychromeAsset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | */
52 | public init(size: SizingCategory = .large, cashTag: String = "", usePolychromeAsset: Bool = false) {
53 | self.paymentMethodView = CashAppPaymentMethodView(
| `- warning: call to main actor-isolated initializer 'init(size:cashTag:cashTagFont:cashTagTextColor:usePolychromeAsset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | size: size,
55 | cashTag: cashTag,
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPaymentMethodView.swift:53:12: note: calls to initializer 'init(size:cashTag:cashTagFont:cashTagTextColor:usePolychromeAsset:)' from outside of its actor context are implicitly asynchronous
51 | - usePolychromeAsset: Toggle usage of polychrome UI
52 | */
53 | public init(
| `- note: calls to initializer 'init(size:cashTag:cashTagFont:cashTagTextColor:usePolychromeAsset:)' from outside of its actor context are implicitly asynchronous
54 | size: SizingCategory = .large,
55 | cashTag: String,
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPaymentMethodView.swift:126:41: error: 'Font' is only available in macOS 10.15 or newer
123 | }
124 |
125 | public enum Constants {
| `- note: add @available attribute to enclosing enum
126 | public static let cashTagFont = Font.system(size: 14)
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
127 | public static let cashTagTextColor = Asset.Colors.textTernary.swiftUIColor
128 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPaymentMethodView.swift:126:46: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
123 | }
124 |
125 | public enum Constants {
| `- note: add @available attribute to enclosing enum
126 | public static let cashTagFont = Font.system(size: 14)
| | `- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing static property
127 | public static let cashTagTextColor = Asset.Colors.textTernary.swiftUIColor
128 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPaymentMethodView.swift:127:71: error: 'swiftUIColor' is only available in macOS 10.15 or newer
123 | }
124 |
125 | public enum Constants {
| `- note: add @available attribute to enclosing enum
126 | public static let cashTagFont = Font.system(size: 14)
127 | public static let cashTagTextColor = Asset.Colors.textTernary.swiftUIColor
| | `- error: 'swiftUIColor' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
128 |
129 | static let titleWidth: CGFloat = 127
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
[1/1] Compiling plugin SwiftGen-Generate
[2/2] Compiling plugin SwiftGenPlugin
Building for debugging...
[2/3] Write swift-version-5BDAB9E9C0126B9D.txt
[4/36] Compiling PayKit RetryPolicy.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[5/36] Compiling PayKit UserAgent.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[6/38] Compiling PayKit CashAppPayEndpoint+Analytics.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[7/38] Compiling PayKit JSONEncoder+Analytics.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[8/38] Compiling PayKit HTTPRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[9/38] Compiling PayKit RESTService.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[10/38] Compiling PayKit AnalyticsEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[11/38] Compiling PayKit AnalyticsService.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[12/38] Compiling PayKit ObjCWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[13/38] Compiling PayKit AnalyticsClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[14/38] Compiling PayKit AnalyticsDataSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/38] Emitting module PayKit
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[16/38] Compiling PayKit StateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[17/38] Compiling PayKit resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[18/38] Compiling PayKit Loggable.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[19/38] Compiling PayKit Log.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[20/38] Compiling PayKit CashAppPay.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[21/38] Compiling PayKit CustomerRequest+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[22/38] Compiling PayKit CustomerRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[23/38] Compiling PayKit CashAppPayState+ObjC.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[24/38] Compiling PayKit CustomerRequest+ObjC.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[25/38] Compiling PayKit Errors+ObjC.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[26/38] Compiling PayKit Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[27/38] Compiling PayKit JSONCoder+PayKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
[28/38] Compiling PayKit NetworkManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/PayKit/CashAppPay.swift:18:8: error: no such module 'UIKit'
16 |
17 | import Foundation
18 | import UIKit
| `- error: no such module 'UIKit'
19 |
20 | public class CashAppPay {
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:24:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
23 |
24 | @ObservedObject public var viewModel: ViewModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - Private Properties
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:51:27: error: 'View' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
49 | }
50 |
51 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
52 | HStack {
53 | buttonView
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:58:34: error: 'View' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:87:39: error: 'Image' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
85 | }
86 |
87 | private var currentAsset: SwiftUI.Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
88 | viewModel.usePolychromeAsset ?
89 | Asset.Images.polyChromeLogo.swiftUIImage : Asset.Images.monoChromeLogo.swiftUIImage
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:134:40: error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
132 | }
133 |
134 | private var buttonBackgroundColor: Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
135 | return
136 | switch (viewModel.isEnabled, viewModel.usePolychromeAsset) {
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:189:10: error: 'Published' is only available in macOS 10.15 or newer
186 | @available(iOS 13.0, *)
187 | extension CashAppPayButtonView {
188 | public class ViewModel: ObservableObject {
| |- note: add @available attribute to enclosing class
| `- note: add @available attribute to enclosing class
189 | @Published var size: SizingCategory
| `- error: 'Published' is only available in macOS 10.15 or newer
190 | @Published var isEnabled: Bool
191 | @Published var usePolychromeAsset: Bool
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:190:10: error: 'Published' is only available in macOS 10.15 or newer
186 | @available(iOS 13.0, *)
187 | extension CashAppPayButtonView {
188 | public class ViewModel: ObservableObject {
| |- note: add @available attribute to enclosing class
| `- note: add @available attribute to enclosing class
189 | @Published var size: SizingCategory
190 | @Published var isEnabled: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
191 | @Published var usePolychromeAsset: Bool
192 | init(size: SizingCategory, isEnabled: Bool, usePolychromeAsset: Bool) {
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:191:10: error: 'Published' is only available in macOS 10.15 or newer
186 | @available(iOS 13.0, *)
187 | extension CashAppPayButtonView {
188 | public class ViewModel: ObservableObject {
| |- note: add @available attribute to enclosing class
| `- note: add @available attribute to enclosing class
189 | @Published var size: SizingCategory
190 | @Published var isEnabled: Bool
191 | @Published var usePolychromeAsset: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
192 | init(size: SizingCategory, isEnabled: Bool, usePolychromeAsset: Bool) {
193 | self.size = size
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:188:29: error: 'ObservableObject' is only available in macOS 10.15 or newer
186 | @available(iOS 13.0, *)
187 | extension CashAppPayButtonView {
188 | public class ViewModel: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing class
| `- note: add @available attribute to enclosing class
189 | @Published var size: SizingCategory
190 | @Published var isEnabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:202:31: error: 'View' is only available in macOS 10.15 or newer
199 |
200 | @available(iOS 13.0, *)
201 | struct CashButtonView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
202 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
203 | VStack {
204 | CashAppPayButtonView(isEnabled: false, onClickHandler: {}, usePolychromeAsset: false)
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:47:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
39 | - usePolychromeAsset: Toggle usage of polychrome UI
40 | */
41 | public init(
| `- note: add @available attribute to enclosing initializer
42 | size: SizingCategory = .large,
43 | isEnabled: Bool = true,
:
45 | usePolychromeAsset: Bool = false
46 | ) {
47 | self.viewModel = ViewModel(size: size, isEnabled: isEnabled, usePolychromeAsset: usePolychromeAsset)
| |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | self.onClickHandler = onClickHandler
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:52:9: error: 'HStack' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
49 | }
50 |
51 | public var body: some View {
| `- note: add @available attribute to enclosing property
52 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | buttonView
54 | .padding(Constants.buttonPadding)
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:54:18: error: 'padding' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
49 | }
50 |
51 | public var body: some View {
| `- note: add @available attribute to enclosing property
52 | HStack {
53 | buttonView
54 | .padding(Constants.buttonPadding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }.background(Color.clear)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:55:11: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
49 | }
50 |
51 | public var body: some View {
| `- note: add @available attribute to enclosing property
52 | HStack {
53 | buttonView
54 | .padding(Constants.buttonPadding)
55 | }.background(Color.clear)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:55:22: error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
49 | }
50 |
51 | public var body: some View {
| `- note: add @available attribute to enclosing property
52 | HStack {
53 | buttonView
54 | .padding(Constants.buttonPadding)
55 | }.background(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:55:28: error: 'clear' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
49 | }
50 |
51 | public var body: some View {
| `- note: add @available attribute to enclosing property
52 | HStack {
53 | buttonView
54 | .padding(Constants.buttonPadding)
55 | }.background(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:59:9: error: 'Button' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | ZStack {
61 | RoundedRectangle(cornerRadius: Constants.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:59:40: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
60 | ZStack {
61 | RoundedRectangle(cornerRadius: Constants.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:60:13: error: 'ZStack' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | RoundedRectangle(cornerRadius: Constants.cornerRadius)
62 | .fill(buttonBackgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:60:20: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
61 | RoundedRectangle(cornerRadius: Constants.cornerRadius)
62 | .fill(buttonBackgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:61:17: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
61 | RoundedRectangle(cornerRadius: Constants.cornerRadius)
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
62 | .fill(buttonBackgroundColor)
63 | currentAsset
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:61:17: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
61 | RoundedRectangle(cornerRadius: Constants.cornerRadius)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | .fill(buttonBackgroundColor)
63 | currentAsset
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:62:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
61 | RoundedRectangle(cornerRadius: Constants.cornerRadius)
62 | .fill(buttonBackgroundColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
63 | currentAsset
64 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:64:22: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
:
62 | .fill(buttonBackgroundColor)
63 | currentAsset
64 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .aspectRatio(contentMode: .fill)
66 | .padding(
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:65:22: error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
:
63 | currentAsset
64 | .resizable()
65 | .aspectRatio(contentMode: .fill)
| |- error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | .padding(
67 | EdgeInsets(
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:66:22: error: 'padding' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
:
64 | .resizable()
65 | .aspectRatio(contentMode: .fill)
66 | .padding(
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | EdgeInsets(
68 | top: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:67:25: error: 'EdgeInsets' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
:
65 | .aspectRatio(contentMode: .fill)
66 | .padding(
67 | EdgeInsets(
| |- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | top: .zero,
69 | leading: horizontalPadding,
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:74:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
:
72 | )
73 | )
74 | .frame(width: minImageWidth, height: iconHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:60:20: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
61 | RoundedRectangle(cornerRadius: Constants.cornerRadius)
62 | .fill(buttonBackgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:77:10: error: 'opacity' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
:
75 | }
76 | }
77 | .opacity(tileImageOpacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .disabled(!viewModel.isEnabled)
79 | .frame(
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:78:10: error: 'disabled' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
:
76 | }
77 | .opacity(tileImageOpacity)
78 | .disabled(!viewModel.isEnabled)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | .frame(
80 | minWidth: minButtonWidth,
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:79:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
56 | }
57 |
58 | private var buttonView: some View {
| `- note: add @available attribute to enclosing property
59 | Button(action: onClickHandler) {
60 | ZStack {
:
77 | .opacity(tileImageOpacity)
78 | .disabled(!viewModel.isEnabled)
79 | .frame(
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | minWidth: minButtonWidth,
81 | maxWidth: .infinity,
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:89:41: error: 'swiftUIImage' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
85 | }
86 |
87 | private var currentAsset: SwiftUI.Image {
| `- note: add @available attribute to enclosing property
88 | viewModel.usePolychromeAsset ?
89 | Asset.Images.polyChromeLogo.swiftUIImage : Asset.Images.monoChromeLogo.swiftUIImage
| |- error: 'swiftUIImage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:89:84: error: 'swiftUIImage' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
85 | }
86 |
87 | private var currentAsset: SwiftUI.Image {
| `- note: add @available attribute to enclosing property
88 | viewModel.usePolychromeAsset ?
89 | Asset.Images.polyChromeLogo.swiftUIImage : Asset.Images.monoChromeLogo.swiftUIImage
| |- error: 'swiftUIImage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:138:41: error: 'swiftUIColor' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
132 | }
133 |
134 | private var buttonBackgroundColor: Color {
| `- note: add @available attribute to enclosing property
135 | return
136 | switch (viewModel.isEnabled, viewModel.usePolychromeAsset) {
137 | case (true, true):
138 | Asset.Colors.polyChrome.swiftUIColor
| |- error: 'swiftUIColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | case (_, false):
140 | Asset.Colors.surfacePrimary.swiftUIColor
/Users/admin/builder/spi-builder-workspace/Sources/PayKitUI/SwiftUI/CashAppPayButtonView.swift:140:45: error: 'swiftUIColor' is only available in macOS 10.15 or newer
18 |
19 | @available(iOS 13.0, *)
20 | public struct CashAppPayButtonView: View {
| `- note: add @available attribute to enclosing struct
21 |
22 | // MARK: - Public Properties
:
132 | }
133 |
134 | private var buttonBackgroundColor: Color {
| `- note: add @available attribute to enclosing property
135 | return
136 | switch (viewModel.isEnabled, viewModel.usePolychromeAsset) {
:
138 | Asset.Colors.polyChrome.swiftUIColor
139 | case (_, false):
140 | Asset.Colors.surfacePrimary.swiftUIColor
| |- error: 'swiftUIColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | case (false, true):
142 | Asset.Colors.polyChrome.swiftUIColor
<unknown>:0: error: cannot convert value of type 'KeyPath<CashAppPayButtonView.ViewModel, SizingCategory>' to expected argument type 'ReferenceWritableKeyPath<CashAppPayButtonView.ViewModel, SizingCategory>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CashAppPayButtonView.ViewModel, Bool>' to expected argument type 'ReferenceWritableKeyPath<CashAppPayButtonView.ViewModel, Bool>'
BUILD FAILURE 6.0 macosSpm