我只是檢查我:應用程序內購買返回0,產品和invalidProductIdentifier
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response {
返回與0的產品陣列的大小爲什麼是這樣一個SKProducstResponse?如果它找不到產品,它應該返回一個0的權利?我檢查了產品ID,它與我在iTunes連接中使用的產品ID相匹配。經過束標識符和它匹配以及..是的,我測試了這個設備上
UPDATE:
我查了
response.invalidProductIdentifier
,並返回我是產品ID試圖獲取。我經歷了這個清單:
• your app is InApp Purchases enabled? **yes**
• do you have an InApp Purchase test account? **yes**
• the product we offer is marked as "Cleared for Sale"? **yes**
• Did you upload the application to iTunes Connect? **no** (don't think it's necessary since 2011, correct me if I am wrong)
• do you generate and install a provisioning profile for the new "App ID"? **yes**
• Does your project is signed with the new provisioning profile? **yes**
• Are you compiling the project for IOS 3.0 or higher? **yes**
• Are you using the full product ID when you make a SKProductRequest? ie for example: com.company.sampleapp.productid? **yes**
• Has it been several hours since you added the products to iTunes Connect? **yes**
• Does the contract payment application in the iTunes Connect is complete? **just submitted it**
實際上我應該支付的合同有效,以使IAP運行嗎?
你是否得到任何響應對象或它的null?希望這個http://bit.ly/qifemx可以幫助你。 –
我收到一個響應對象 – adit
你等了很久嗎?有時可能需要幾個小時才能顯示新產品。 – Sam