I am trying to run sample ionic app from “Getting started” web page, everything builds fine but I just am not able to run the command “sudo ionic emulate ios”.
I have tried all the solution from this forums i.e. creating emulate.sh file, giving permission, restarting. Nothing works
I have latest xcode from last week, what else I should do.
here is error :
** BUILD SUCCEEDED **
No target specified for emulator. Deploying to iPhone-6 simulator
An error was encountered processing the command (code=146):
Invalid device state
ENOENT, no such file or directory '/Users//Library/Logs/CoreSimulator/40CC7C91-5FD8-485E-AC76-3947705A1CB7/system.log’
Error code 1 for command: ios-sim with args: launch,/Users//myApp/platforms/ios/build/emulator/myApp.app,–devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,–stderr,/Users//myApp/platforms/ios/cordova/console.log,–stdout,/Users//myApp/platforms/ios/cordova/console.log,–exit
Error: /Users//myApp/platforms/ios/cordova/run: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)