title: Unity Codeless IAP and iOS: “UnityIAP: Received 0 products”
body: <p>I've been working on an <code>iOS</code> app that implements in-app purchasing through Unity's codeless <code>IAP</code>, and I've been repeatedly running into a series of errors that culminates in the failure of <code>UnityIAP</code> to initialize:</p>
  
  <pre><code>2018-07-17 11:19:49.534325-0400 myApp[3536:9271265] UnityIAP: Requesting 4 products
  2018-07-17 11:19:49.543170-0400 myApp[3536:9271265] UnityIAP: Requesting product data...
  2018-07-17 11:19:52.427308-0400 myApp[3536:9271265] UnityIAP: Received 0 products
  2018-07-17 11:19:52.447201-0400 myApp[3536:9271265] UnityIAP: No App Receipt found
  2018-07-17 11:19:52.453272-0400 myApp[3536:9271265] UnityIAP: No App Receipt found
  ...
  Unavailable product com.myCompany.myApp.myProduct1 -1000000001
  ...
  Unavailable product com.myCompany.myApp.myProduct2 -1000000002
  ...
  Unavailable product com.myCompany.myApp.myProduct3 -1000000003
  ...
  Unavailable product com.myCompany.myApp.myProduct4 -1000000004
  ...
  Purchasing failed to initialize. Reason: NoProductsAvailable`
  </code></pre>
  
  <p>In short, when Unity attempts to initialize using the catalog I defined, it seems to be unable to find the associated products on App Store Connect. I've been through many other threads here and on Unity's website and none seem to hold the answer.</p>
  
  <p>Common suggestions are to</p>
  
  <ol>
  <li><p>Ensure that <code>IAP</code> is enabled in the provisioning profile</p></li>
  <li><p>Ensure that the Product ID and Apple ID values on iTunes Connect match those in the Unity catalog</p></li>
  <li><p>Ensure that code is signed using the proper signature</p></li>
  <li><p>Ensure that the product types match (e.g. Consumable, Non-Consumable, Subscription)</p></li>
  <li><p>Ensure that the device is logged in to the sandbox account</p></li>
  <li><p>Ensure that the developer's iTunes account details are set up</p></li>
  <li><p>Submit the app for review</p></li>
  </ol>
  
  <p>It seems that most others with the same problem failed one or more of the preceding seven points. However, I've done each of the things, and yet the error persists. Any ideas? Thanks.</p>