bizz84 / SwiftyStoreKit

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

Completion on success purchase is not call-backed on iOS 17 simulator #699

Open torufuruya opened 1 year ago

torufuruya commented 1 year ago

Bug Report

To Reproduce

  1. Purchase the auto-renew product by the purchaseProduct()
  2. Sign in to the Sandbox Apple account

Expected behavior

Completion is call-backed when it succeeds in purchasing on iOS 17

Platform Information

torufuruya commented 1 year ago

I tried StoreKit2 to purchase the same product and it does the same as this issue (doesn't return the success result and the purchase sheet appears again), so it's most probably the Xcode beta and iOS 17 issue 😕

do {
    let products = try await Product.products(for: ["my product ID"])
    let result = try await products.first?.purchase()
    print(result)
} catch {
    print(error.localizedDescription)
}
monkeyRing commented 12 months ago

Please test with real device

torufuruya commented 12 months ago

I confirmed nothing changed on Xcode 15 beta 8 (15A5229m).

@monkeyRing I don't have a device that can install iOS 17, so It would be appreciated if you could test it.

torufuruya commented 11 months ago

I tested it with the physical device iPhone SE 3rd that iOS 17 public beta 6 installed, and the issue did not reproduce. So it is probably only the issue for iOS 17 simulators.

Feel free to close the issue in case it should be. Thanks.

800sea commented 8 months ago

I ran into a similar problem and it worked fine using the real machine