@ejerskov wrote:
My new ionic app won’t run in the iOS emulator.
Its a fresh install of ionic and Xcode, these are my steps:
npm install -g ionic ionic start myApp tabs ionic cordova platform add ios ionic cordova build ios ionic cordova emulate ios
Then I get the following error:
No target specified for emulator. Deploying to undefined simulator
/localhost/myApp/platforms/ios/build/emulator/MyApp.app/Info.plist
file not found.According to this thread (Fresh Ionic Fails to Emulate iOS 12 - Info.plist file not found) it should work with the following command:
ionic cordova emulate ios -- --buildFlag="-UseModernBuildSystem=0"
But then I get the following error:
No target specified for emulator. Deploying to undefined simulator
Device type “com.apple.CoreSimulator.SimDeviceType.undefined” could not be found.And then according to this thread (Issues starting iOS simulator from CLI) it should work by updating ios-sim like this:
cd platforms/ios/cordova && npm install ios-sim@latest
But I still get the following error:
No target specified for emulator. Deploying to undefined simulator
Device type “com.apple.CoreSimulator.SimDeviceType.undefined” could not be found.How do I proceed from here?
Ionic: ionic (Ionic CLI) : 4.10.2 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.0.1 @angular-devkit/build-angular : 0.12.4 @angular-devkit/schematics : 7.2.4 @angular/cli : 7.2.4 @ionic/angular-toolkit : 1.4.0 Cordova: cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : ios 5.0.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 4 other plugins) System: ios-sim : 7.0.0 NodeJS : v10.15.1 (/usr/local/bin/node) npm : 6.4.1 OS : macOS Mojave Xcode : Xcode 10.1 Build version 10B61
Posts: 1
Participants: 1