我正在从我的服务器获取标识符列表,然后在产品请求中将它们传递给 Apple。这是我的代码,下面是我得到的错误。发生这种情况时,iPhone 4 不会崩溃。
-(void)didReceiveData:(NSArray *)data {
NSLog(@"Received Identifiers: %@",data);
NSSet *productIdentifiers = [NSSet setWithArray:data];
SKProductsRequest *productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers];
productsRequest.delegate = self;
[productsRequest start];
NSLog(@"productsRequest should have started by now");
}
Wed Dec 29 09:42:14 iPhone XXXX-iphone[6363] <Warning>: Received Identifiers: (
(
1,
10,
"com.XXXX.XXXX.10"
)
)
Wed Dec 29 09:42:14 iPhone XXXX-iphone[6363] <Warning>: productsRequest should have started by now
12 月 29 日星期三 09:42:18 iPhone itunesstored[6367]:-[__NSCFArray 长度]:无法识别的选择器发送到实例 0x119070
Wed Dec 29 09:42:18 iPhone itunesstored[6367] : caught -[__NSCFArray length]: unrecognized selector sent to instance 0x119070 exception with stack trace: (0x33ac0975 0x3347b49d 0x33ac2133 0x33a69aa9 0x33a69860 0x2717b 0x27515 0x31469651 0x314693ed 0x31469e39 0x3362795f 0x336276c3 0x3363c4eb 0x33c32680 0x33c32ba0 0x33bd7251 0x33bcf978 )