SwiftyStoreKit icon indicating copy to clipboard operation
SwiftyStoreKit copied to clipboard

Compiling for watchOS 4.0, but module 'SwiftyStoreKit' has a minimum deployment target of watchOS 6.2

Open frogg opened this issue 5 years ago • 2 comments

Bug Report

I want to use SwiftyStoreKit in an watchOS app with deployment target of watchOS 4.0. Prior watchOS 6.2 I cannot use the Framework, since the API was introduced with wOS 6.2.

Thats why I've imported the framework optionally and marked the class to use the framework with @available(watchOS 6.2, *).

However, I cannot compile the project: Compiling for watchOS 4.0, but module 'SwiftyStoreKit' has a minimum deployment target of watchOS 6.2.

I've tried using

#if canImport(SwiftyStoreKit)
import SwiftyStoreKit
#endif

…but that didn't solve my problem.

Any ideas? It seems like this has been fixed in #562 but somehow not for me? (I am using version 0.16.1).

frogg avatar Jul 28 '20 08:07 frogg

Also tried Swift's conditional import but not working to solve it: https://stackoverflow.com/questions/62984725/conditional-imports-in-swift-not-working

gesabo avatar Jul 28 '20 13:07 gesabo

Hey, has there been any update on this? I just attempted to try this again, but the same error message is still occurring…

image

frogg avatar Nov 08 '20 19:11 frogg