ENOENT error when trying to emulate an IOS iOS app

I am trying to use ions. Everything works smoothly, but when I tried to emulate the iOS app

macbook$ sudo ionic emulate ios

      

I got the following error:

Password:

....

** BUILD SUCCEEDED **

No target specified for emulator. Deploying to iPhone-6 simulator
ENOENT, no such file or directory '/Users/macbook/Library/Logs/CoreSimulator/9F89ED64-0748-4A65-92DF-611110E9D4C4/system.log'
Error code 1 for command: ios-sim with args: launch,/Users/macbook/Documents/workspaceionic/MyTestApp/platforms/ios/build/emulator/MyTestApp.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--stderr,/Users/macbook/Documents/workspaceionic/MyTestApp/platforms/ios/cordova/console.log,--stdout,/Users/macbook/Documents/workspaceionic/MyTestApp/platforms/ios/cordova/console.log,--exit
Error: /Users/macbook/Documents/workspaceionic/MyTestApp/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.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Process.ChildProcess._handle.onexit (child_process.js:802:5)

      

Do you have any ideas on what might be wrong? I am using Yosemite and Node is 0.12.7. IOS apps from Xcode emulate thin

EDIT: If I open the project with XCode and emulate it, it works.

+3


source to share


2 answers


not necessary sudo

ionic emulate iOS



- correct statement

+1


source


Apparently problems with running Node 0.12.x and Ionic. I am facing this problem myself, in my c9.io account ... dev environ wants 0.12.x but Ionic requires 0.10.x. See Anil Singh's answer on this thread for more information: With Node 0.12.2 and npm 2.7.4 ionic installation error on Windows 7



+1


source







All Articles