ios-control / ios-sim

Command-line application launcher for the iOS Simulator
Apache License 2.0
1.49k stars 253 forks source link

Unhandled Error: launch.js line 51. this.log undefined. #270

Open tommulkins opened 4 years ago

tommulkins commented 4 years ago

Command ran

Running command:

/Users/tommulkins/Projects/Worthy Financial/worthy-frontend/src-cordova/node_modules/ios-sim/bin/ios-sim launch /Users/tommulkins/Projects/Worthy Financial/worthy-frontend/src-cordova/platforms/ios/build/emulator/Worthy Financial - Earn 5 percent return on your savings.app --devicetypeid com.apple.CoreSimulator.SimDeviceType.iPhone-SE--2nd-generation-, 13.4 --log /Users/tommulkins/Projects/Worthy Financial/worthy-frontend/src-cordova/platforms/ios/cordova/console.log --exit

Expected behavior

Successfully deploys to ios simulator.

Actual behavior.

Exception thrown:

Error: Unhandled error. ('[ios-sim] /Users/tommulkins/Projects/Worthy Financial/worthy-frontend/src-cordova/node_modules/ios-sim/src/commands/launch.js:51\n' +
  '          this.log(`logPath: ${path.resolve(flags.log)}`)\n' +
  '               ^\n' +
  '\n' +
  "TypeError: Cannot read property 'log' of undefined\n" +

Steps to reproduce the problem

Build and deploy cordova app using ios-sim 9.0.0

System Specs

Please run the commands below in your Terminal.app and include it in the issue. Check when done and include results below.

/Applications/Xcode.app/Contents/Developer

reztin commented 4 years ago

Same here

kreavie commented 3 years ago

Same here as well

raphaelarias commented 3 years ago

@tommulkins have you found a workaround?

tommulkins commented 3 years ago

@tommulkins have you found a workaround?

I just downgraded to 8.0.2 and have been using that ever since.