apache / cordova-ios

Apache Cordova iOS

Home Page:https://cordova.apache.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read property 'name' of undefined xcode@15 ios17

LOVETOO opened this issue · comments

sudo ionic cordova build ios --prod --release
...
Cannot read property 'name' of undefined.
at /xxx/platforms/ios/cordova/lib/build.js:162:40

return getDefaultSimulatorTarget().then(function (defaultTarget) {
emulatorTarget = defaultTarget.name;

The defaultTarget is undefined.
Running getDefaultSimulatorTarget using sudo yields undefined, while the opposite is true.

The iOS simulator is installed through commands:
sudo xcode-select -s /Applications/Xcode-15.0.app
sudo xcodebuild -runFirstLaunch
sudo xcrun simctl runtime add "/Users/xxx/Desktop/xxx/iOS_17_Simulator_Runtime.dmg"

Environment:
Mac OS 14.0
xCode 15.0
iOS simulator 17.0
ionic/cli@7.4.3
Cordova 12.0.0