Ranjana Dangol
Ranjana Dangol

Reputation: 1379

StoreKit in Xcode 8 and iOS 10 not working

I am using XCode version 2345.1 and I have a device with iOS 10.0.1. The app was working with in-app purchases in iOS 9, now I cannot perform that functionality.

On debugging, I got 'SKErrorUnknown' in one device whilst in another I got 'SKErrorClientInvalid'. The second one is because the account i am using to buy is for US store while the app is of Indian store.

When I change the store in App Store, following is shown :- enter image description here enter image description here

Upvotes: 0

Views: 335

Answers (1)

Jamshed Alam
Jamshed Alam

Reputation: 12844

May be your app is enabled only for other location, test user was localised for other - and with this setup does not work.

You should enabled the app for USA and created a test user localised in USA and it seems to work (no code change at all). And I think that proves that the code is ok, just the apple sandbox has some problems with non USA test users.

Upvotes: 1

Related Questions