in-app-purchaseios7xcode5storekitxcode4.6.3

XCode 5 in app purchase issue


On Xcode 4.6.3 this delegate method below works good:

- (void)productsRequest:(SKProductsRequest*)aRequest didReceiveResponse:(SKProductsResponse*)response;

But when I try to run the same project on Xcode 5 it does not work. Instead of invoke delegate method above the app calls this method:

- (void)request:(SKRequest *)request didFailWithError:(NSError *)error;

I have description of error:

{NSLocalizedDescription=Cannot connect to iTunes Store}

I use standard iOS 7 simulator and Xcode 5 but in this case the logic does not work as I expect.

For version 4.6.3 all work


Solution

  • My comment is actually the answer, further digging shows Apple doc for Xcode 5 release notes says under the iOS Simulator section

    StoreKit (In-App purchases) will not work in the Simulator

    Here