Swiftystorekit: Compile Error when targeting macOS/tvOS using Xcode 10

Created on 20 Jun 2018  路  7Comments  路  Source: bizz84/SwiftyStoreKit

Platform

  • [ ] iOS
  • [x] macOS
  • [x] tvOS

In app purchase type

  • [x] Consumable
  • [x] Non-consumable
  • [x] Auto-Renewable Subscription
  • [x] Non-Renewing Subscription

Environment

  • [x] Sandbox
  • [x] Production

Version

0.13.2

Related issues

N/A

Report

Issue summary

SwiftyStoreKit will not compile for macOS/tvOS using Xcode 10, the following error is emitted:

Cannot override 'paymentQueue' which has been marked unavailable
at this location:

https://github.com/bizz84/SwiftyStoreKit/blob/master/SwiftyStoreKit/PaymentQueueController.swift#L242

This is because

- (BOOL)paymentQueue:(SKPaymentQueue *)queue shouldAddStorePayment:(SKPayment *)payment forProduct:(SKProduct *)product NS_SWIFT_NAME(paymentQueue(_:shouldAddStorePayment:for:))

is marked as NS_AVAILABLE_IOS(11_0);

What did you expect to happen

SwiftyStoreKit should compile on macOS/tvOS.

What happened instead

Compilation fails due to the aforementioned error.

Most helpful comment

Still doesn't compile when installed using cocoapods

All 7 comments

+1 just an into this issue myself

+1 is impossible to compile with xcode10/mac

+1

This is now fixed and available on pod version 0.13.3.

Apologies for the very late reply everyone.

Thanks.

Still doesn't compile when installed using cocoapods

Was this page helpful?
0 / 5 - 0 ratings