0

我在请求产品信息时遇到了无效标识符问题

我做了以下事情:

  1. 我已将我的应用程序添加到 iTunes 连接,并且捆绑标识符与程序门户中的那个匹配。

  2. 我已经在程序门户中为应用程序 ID 启用了应用程序购买,并为此创建了配置文件并安装在设备上。

  3. 使用产品标识符、价格和名称创建测试帐户。

  4. 我已将以下代码包含在我的项目中

    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 无效。

如果有人有任何想法,请帮助我!

4

2 回答 2

2

这似乎是此类问题的最终清单:http: //troybrant.net/blog/2010/01/invalid-product-ids/

就我而言,我的客户需要在我开始取回有效产品之前填写他们的银行信息。

于 2012-03-08T12:11:45.277 回答
1

如果您尝试了所有方法但仍然获得无效的产品 ID,如果您的设备已越狱,请尝试恢复出厂设置。我什么都试过了,直到我恢复到出厂版本才开始工作。不知何故越狱设备无法在应用程序购买中进行测试

于 2011-06-18T22:28:22.723 回答