ãã¨ãã°ä¸è¨ã®ãããªã³ã¼ãã§ãããã¯ãæ å ±åå¾å¦çãè¡ã£ãå ´åã«ã
self.request = [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObject:productId]]; self.request.delegate = self; [self.request start];
ãããã¯ãæ å ±ã®åå¾ãå®äºãã㨠productsRequest:didReceiveResponse: ã¡ã½ãããå¼ã°ãããã§ãããããã§ä¸è¨ã®ããã«ãç¡å¹ãªãããã¯ãIDãããã§ãã¯ããã¨
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response { if ([response.invalidProductIdentifiers count] > 0) { // ç¡å¹ãªãããã¯ãIDãã }
ã¿ãã¨ã«invalidã«ãªã£ã¦ããå ´åãããã¾ãã
ãããªå ´åã®ãã§ãã¯ãªã¹ã
- Have you enabled In-App Purchases for your App ID?
- Have you checked Cleared for Sale for your product?
- Have you submitted (and optionally rejected) your application binary?
- Does your projectâs .plist Bundle ID match your App ID?
- Have you generated and installed a new provisioning profile for the new App ID?
- Have you configured your project to code sign using this new provisioning profile?
- Are you building for iPhone OS 3.0 or above?
- Are you using the full product ID when when making an SKProductRequest?
- Have you waited several hours since adding your product to iTunes Connect?
- Are your bank details active on iTunes Connect? (via Mark)
- Have you tried deleting the app from your device and reinstalling?
- Is your device jailbroken? If so, you need to revert the jailbreak for IAP to work. (via oh my god, Roman, and xfze)
ã§ãä¸è¨ã®ã»ã¨ãã©ã¯ã¢ããªãæ£ããä½ã£ã¦ããã°åé¡ãªãã¦ãã¡ããã¨ãã£ã¦ãã¯ããªã®ã« invalid ã«ãªãï¼ã¨ããå ´åã¯
ãã¢ããªãåé¤ãã¦åã¤ã³ã¹ãã¼ã«ã
ããã試ãã¦ã¿ã¦ãã ããã
ï¼ä¸è¨ãªã¹ãã§å¤ªåã«ããé
ç®ã«ãããã¾ãï¼
ï¼参考ページï¼