SwiftyStoreKit icon indicating copy to clipboard operation
SwiftyStoreKit copied to clipboard

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

Open gesabo opened this issue 4 years ago • 7 comments

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 avatar Jan 12 '21 14:01 gesabo

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.

gesabo avatar Jan 12 '21 15:01 gesabo

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

Sam-Spencer avatar Jan 22 '21 19:01 Sam-Spencer

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 :)

dramikei avatar Mar 31 '21 19:03 dramikei

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

gesabo avatar Apr 29 '21 18:04 gesabo

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

jordikitto avatar May 06 '21 23:05 jordikitto

@Sam-Spencer Any update on this?

WillBishop avatar Jul 06 '21 01:07 WillBishop

same problem ,macOS

nenhall avatar Jul 30 '21 09:07 nenhall