Search code examples
cordovaphonegap

No target specified for emulator (CORDOVA)


Cannot get cordova emulate ios to open up emulator and run my application.

I continue getting the same error:

No target specified for emulator. Deploying to iPhone-X, 12.1 simulator
/Users/osx/Code/react-cordova/platforms/ios/build/emulator/CreateReactAppAndCordova.app/Info.plist file not found.

That being said, I open up XCode and build within XCode to see the application. Is there a step that I'm missing?

I've started from this base repo: https://github.com/sriramrudraraju/create-react-app-and-cordova


Solution

  • Try this:

    cordova run ios --buildFlag='-UseModernBuildSystem=0'