製品情報のリクエスト中に無効な識別子の問題が発生しました
私は次のことをしました:
アプリケーションを iTunes Connect に追加しましたが、バンドル ID がプログラム ポータルのものと一致します。
プログラム ポータルでアプリ ID のアプリ購入を有効にし、そのプロビジョニング プロファイルを作成してデバイスにインストールしました。
製品 ID と価格と名前でテスト アカウントを作成しました。
プロジェクトに以下のコードを含めました
NSString *str = [[NSString alloc] initWithFormat:@"//Same as the Product Id displayed in Itunes Connect//"]; SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObject:str]]; request.delegate = self; [request start]; } - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response{ NSArray *myProduct = response.products; NSArray *invalidProdId = response.invalidProductIdentifiers; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"product" message:[myProduct objectAtIndex:0] delegate:nil cancelButtonTitle:@"purchse" otherButtonTitles:@"cancel"]; [alert show]; [alert release]; [request autorelease]; }
しかし、productid が無効になっています。
どなたか心当たりのある方いましたら教えてください!