Fresh Ionic Fails to Emulate iOS 12 - Info.plist file not found


#1

Hi,

Yesterday my mac got an update for iOS 12. I created a fresh ionic project with ionic start, builded successfully. When I try to emulate I got the error below:

[cordova] No target specified for emulator. Deploying to iPhone-XS-Max, 12.0 simulator
[cordova] /Applications/MAMP/htdocs/start/start/platforms/ios/build/emulator/start.app/Info.plist file not found.
[ERROR] An error occurred while running subprocess cordova.

My ionic info.

Ionic:

ionic (Ionic CLI) : 4.1.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.4, (and 4 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/halilyumusak/Library/Android/sdk)
ios-deploy : 1.9.2
NodeJS : v8.11.1 (/usr/local/bin/node)
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 10.0 Build version 10A255


Compatible node/npm versions
#2

This is a cordova issue. Follow this thread https://github.com/apache/cordova-ios/issues/407


#3

Thank you. Below code fixed the error for me.

ionic cordova emulate ios -- --buildFlag="-UseModernBuildSystem=0"

#4

It works here! Thanks!


#5

Its works for me. thanks :slight_smile:


#6

funciono !!! muchas gracias.


#7

Its working fine but , every time needs to run same command?


#8

I just run e.g.

npm run emulate-live

This is my scripts block in package.json file:

"scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build --prod",
    "lint": "ionic-app-scripts lint",
    "emulate-live": "ionic cordova emulate ios -lc --debug --target=\"iPhone-X\" -- --buildFlag=\"-UseModernBuildSystem=0\"",
    "emulate-live-iPhone-8-Plus": "ionic cordova emulate ios -lc --target=\"iPhone-8-Plus\" -- --buildFlag=\"-UseModernBuildSystem=0\"",
    "emulate": "ionic cordova emulate ios --target=\"iPhone-X\" -- --buildFlag=\"-UseModernBuildSystem=0\"",
    "build-prod": "ionic cordova build ios --prod --release -- --buildFlag=\"-UseModernBuildSystem=0\"",
    "device": "ionic cordova run ios -- --buildFlag=\"-UseModernBuildSystem=0\""
  },