saturngod / IAPHelper

No more maintenance for this repo. Please use the https://github.com/bizz84/SwiftyStoreKit
MIT License
1.55k stars 280 forks source link

I have try to use IAPHelper,but it always present cannot connect to iTunes Store 0,Can you tell me why? #31

Open bianxiang opened 8 years ago

bianxiang commented 8 years ago

I have try to use IAPHelper,it can show goods information,but it always present cannot connect to iTunes Store 0,Can you tell me why? 047fb9b8-4408-414d-8298-3c46ee8e07b3

CeccoCQ commented 8 years ago

Same problem here, but only in production mode. In sandbox all works fine.

saturngod commented 8 years ago

@bianxiang Hi , can you logout your app store and login with test account if you are not on production mode.

@CeccoCQ can you try to logout the app store account and try again in production mode ? It happen sometime if we was testing with test account.

CeccoCQ commented 8 years ago

@saturngod I've already tried to logout, without success. In sandbox mode all works correctly. Another issue: the version that is on Apple Store doesn't retrieve the products list. If I work on my simulator (or in debug mode) I'm able to fetch all products details.

SoaringDovahkiin commented 7 years ago

Yes, I got the same problem as well. Very disappointing as I switched from MKStoreKit to this in the hopes that this might work; problem might be related to IPv6 networks.

saturngod commented 7 years ago

@SoaringDovahkiin happen in production ? How did you test the production ? If it's Adhoc version cannot use with real apple store account. Need to use with test account.

Real app store account can only use for download from app store.

SoaringDovahkiin commented 7 years ago

@saturngod Yes, it was on the iPhone 6 simulator on a sandbox environment (test account) and got the following error: Fail Cannot connect to iTunes Store. I will be testing this out on a real device as well.

UPDATE: IAPHelper works in sandbox mode (in simulator and real devices), however I am testing on my real apple account on my device and I cannot connect to iTunes store. I would like to submit the application, but not sure if it works. By adhoc version, you mean version that is not uploaded on app store?

Thanks for your time, SoaringDovahkiin

ghost commented 7 years ago

Has anyone solved this problem yet? I am have the exact same issue, and have been working on it for over a week now. I like IAPHelper and would like to use it.

yuyangdexue commented 7 years ago

@jonkrider why ? it always present cannot connect to iTunes Store 0

poongd commented 7 years ago

same issue

xyxdasnjss commented 7 years ago

猜测可能是因为你的 AppleID 是正式的,需要 用测试账号 进行购买测试; 注销掉AppleID,然后运行购买代码,这时应该会 询问你的 测试账号。

revolter commented 6 years ago

@xyxdasnjss, Maybe use english so it may help others having the same problem?