遇到错误
无法读取未定义的属性“名称”
在Mac中构建离子应用程序时
答案 0 :(得分:0)
modify platform/ios/cordova/lib/list-emulator-build-targets:
change:
if (device.name === deviceType.name.replace(/\-inch/g, ' inch') &&
device.availability.toLowerCase().indexOf('unavailable') < 0) {
availAcc.push(device);
}
to:
if (device.name === deviceType.name.replace(/\-inch/g, ' inch')) {
if ((device.availability && device.availability.toLowerCase().indexOf('unavailable') < 0)
|| device.isAvailable) {
availAcc.push(device);
}
}