Error code 1 for command: ios-sim with arg


#1

Touch build/emulator/test.app
cd /Users/isathish/test/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/touch -c /Users/isathish/test/platforms/ios/build/emulator/test.app

** 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/isathish/Library/Logs/CoreSimulator/DD3632F7-07D8-42CE-A88D-6F9FB757447F/system.log’
Error code 1 for command: ios-sim with args: launch,/Users/isathish/test/platforms/ios/build/emulator/test.app,–devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,–stderr,/Users/isathish/test/platforms/ios/cordova/console.log,–stdout,/Users/isathish/test/platforms/ios/cordova/console.log,–exit
Error: /Users/isathish/test/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)