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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…