title: cordova build ios but error in 'Cannot read property 'toLowerCase' of undefined'
body: <p>I use ionic3 and cordova@8.1.2. Recently my Xcode update to 11.1 and error occured [Cannot read property 'toLowerCase' of undefined].I tried this way:
  change:</p>
  
  <pre><code>if (device.name === deviceType.name.replace(/\-inch/g, ' inch') &amp;&amp;
      device.availability.toLowerCase().indexOf('unavailable') &lt; 0) {
      availAcc.push(device);
   }
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>if (device.name === deviceType.name.replace(/\-inch/g, ' inch')) {
  if ((device.availability &amp;&amp; device.availability.toLowerCase().indexOf('unavailable') &lt; 0)
  || device.isAvailable == 'YES') {
  // XCode 10 and lower
  availAcc.push(device);
  }
  }
  </code></pre>
  
  <p>Then error occurred in</p>
  
  <pre><code>Cannot read property 'name' of undefined
  </code></pre>
  
  <p>I cannot find where is this 'name'.</p>