bizz84 / SwiftyStoreKit

Lightweight In App Purchases Swift framework for iOS 8.0+, tvOS 9.0+ and macOS 10.10+ ⛺
MIT License
6.58k stars 795 forks source link

Cannot override 'paymentQueue' which has been marked unavailable in 0.16.3 #614

Open gesabo opened 3 years ago

gesabo commented 3 years ago

I'm trying to update to 0.16.3 so that hopefully a crash I am experiencing related to price locale will be fixed. However Xcode it failing for Cannot override 'paymentQueue' which has been marked unavailable on this line which looks like it shouldn't be commented out ?

// #if os(iOS) && !targetEnvironment(macCatalyst)
func paymentQueue(_ queue: SKPaymentQueue, shouldAddStorePayment payment: SKPayment, for product: SKProduct) -> Bool {
    return shouldAddStorePaymentHandler?(payment, product) ?? false
}
// #endif
gesabo commented 3 years ago

Update: this may be due to me adding the package as a dependency to my app's Watch Extension, but we need to support purchases on the watch as well.

Sam-Spencer commented 3 years ago

Uh oh! I'll take a look at this and get it fixed. Sorry about that.

dramikei commented 3 years ago

Facing the same issue when adding the package as a dependency to my app's Watch Extension as well. However, the issue does not exist on version 0.16.1, which is what I am using for now. Hope it helps :)

gesabo commented 3 years ago

BUMP can we please get this fixed so we can use SwiftyStoreKit in WatchOS?

jordikitto commented 3 years ago

Further bump, shame this one this stops WatchOS support atm :(

WillBishop commented 3 years ago

@Sam-Spencer Any update on this?

nenhall commented 3 years ago

same problem ,macOS