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/24 17:54:38 UTC

[GitHub] [cordova-ios] derman10 commented on issue #427: Cordova build iOS error: Cannot read property 'toLowerCase' of undefined with Xcode 9.4.1

derman10 commented on issue #427: Cordova build iOS error: Cannot read property 'toLowerCase' of undefined with Xcode 9.4.1
URL: https://github.com/apache/cordova-ios/issues/427#issuecomment-534674413
 
 
   > It just happened to me with Xcode 10.2, running on the MacOS Catalina beta. I fixed it by slightly altering the answer @waflessnet gave. Replace the `availableDevices` function in `platforms/ios/cordova/lib/list-emulator-build-targets` with the following:
   > 
   > ```
   > var availableDevices = Object.keys(devices).reduce(function (availAcc, deviceCategory) {
   >     var availableDevicesInCategory = devices[deviceCategory];
   >     availableDevicesInCategory.forEach(function (device) {
   >         if (device && device.name === deviceType.name.replace(/\-inch/g, ' inch') && device.isAvailable == true) {
   >             availAcc.push(device);
   >         }
   >     });
   >     return availAcc;
   > }, []);
   > ```
   
   this solved my problem! 
   Thanks!!

----------------------------------------------------------------
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