Skip to content

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

Open
@tommulkins

Description

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.

  • 1. system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 10.15.4 (19E287)
      Kernel Version: Darwin 19.4.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: Tom’s MacBook Pro
      User Name: Tom Mulkins (tommulkins)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 1 day 23:20
  • 2. ios-sim --version
ios-sim/9.0.0 darwin-x64 node-v12.13.1
  • 3. xcodebuild -version
Xcode 11.4.1
Build version 11E503a
  • 4. xcode-select --print-path

/Applications/Xcode.app/Contents/Developer

  • 5. node --version
    v12.13.1

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions