问题
I searched, only found a similar question, which was not quite answered, and mine is not the same, so I ask here.
I followed Troy IAP tutorial (http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/) and coded my IAP, which works well in iOS 6.0 Simulator or real non-jail-break testing device. However, when I tested in iOS 5.0/5.1 Simulator (I don't have 5.x device), IAP process went through all steps to payment queue and returned stateFailed. The program otherwise runs well in iOS 5.x, except IAP.
Any idea? Thanks.
回答1:
i also face same issue and yes ask question here and i found this answer.
You cannot reliably test In App Purchase in the iOS5 Simulator. You need to test it on a device.
来源:https://stackoverflow.com/questions/13597263/in-app-purchase-any-difference-between-ios-5-and-6