In IOS6, I was successfully making in-app purchases in my app.
I downloaded IOS/ and Xcode 5 Beta and tried to open the same project.
My code to get products from app store is:
- (void)requestProductsWithIdentifiers:(NSSet*)identifiers
{
@synchronized(self)
{
DebugLog(@"requesting products with identifiers: %@", identifiers);
self.productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:identifiers] ;
self.productsRequest.delegate = self;
[self.productsRequest start];
}
}
But it returns an error:
[IAPHelper request:didFailWithError:](114): request did fail with error: <SKProductsRequest: 0xb846a10> / Error Domain=SSErrorDomain Code=2 "Cannot connect to iTunes Store" UserInfo=0xb846b10 {NSLocalizedDescription=Cannot connect to iTunes Store}
Where can be the problem?
Apple blocked testing in-app purchases...
Here is the link to the release notes https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html#//apple_ref/doc/uid/TP40001051-CH1-SW578
See: iOS Simulator section
StoreKit (In-App purchases) will not work in the Simulator. 13962338
Very sad...