iphone - ionic emulate ios - won't emulate and says no such file or directory -


ran add ios , build ios fine, ran ionic emulate ios , brought xcode emulator no app or button app (just safari, maps, etc.).

i later ran ionic emulate ios --target="iphone-5s" , got error:

  build succeeded    error encountered processing command  (domain=com.apple.coresimulator.simerror, code=159): invalid device  state error encountered processing command  (domain=com.apple.coresimulator.simerror, code=159): invalid device  state   enoent: no such file or directory, stat  '/users/sh/library/logs/coresimulator/62773263-27dc-4e83-9c6a-ed2b73dc3f0a/system.log'  error code 1 command: ios-sim args:  launch,/users/sh/desktop/shapp/platforms/ios/build/emulator/shapp.app,--devicetypeid,com.apple.coresimulator.simdevicetype.iphone-5s,--stderr,/users/sh/desktop/shapp/platforms/ios/cordova/console.log,--stdout,/users/sh/desktop/shapp/platforms/ios/cordova/console.log,--exit  error: /users/sh/desktop/shapp/platforms/ios/cordova/run: command  failed exit code 2   shs-imac:shapp sh$ q  -bash: q: command not found 

not sure did wrong added , built ios correctly.

it worked correctly when pulled in xcode although there these warnings both running 5s , 6. think ionic issue not being able emulate ios not sure how fix it?

do this:

  1. update ios-sim package: npm install ios-sim -g
  2. update cordova: npm install -g cordova
  3. remove ios platform: ionic platform rm ios
  4. add ios platform: ionic platform add ios

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -