You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/09/26 18:47:01 UTC

[GitHub] [cordova-ios] namello-zmtp commented on issue #675: iOs build fails - UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toLowerCase' of undefined

namello-zmtp commented on issue #675: iOs build fails - UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toLowerCase' of undefined
URL: https://github.com/apache/cordova-ios/issues/675#issuecomment-535636584
 
 
   list-emulator-build-targets:
   
   Line 50: Change the following statement to below:
   ```
               var availableDevices = Object.keys(devices).reduce(function (availAcc, deviceCategory) {
                   var availableDevicesInCategory = devices[deviceCategory];
                   availableDevicesInCategory.forEach(function (device) {
                       if (device.name === deviceType.name.replace(/\-inch/g, ' inch') && 
                           !("availabilityError" in device)) {
                               availAcc.push(device);
                           }
                   });
                   return availAcc;
               }, []);
   ```
   
   They changed the simulator device properties, now, availability is an optional prop, which is only present when there is an error. This will fix it :)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org