Skip to content

Running "ios-sim showdevicetypes" throws error "Cannot read property 'replace' of undefined" #203

@alexfoxy

Description

@alexfoxy

I'm having problems running the command "ios-sim showdevicetypes" from the terminal. The problem points to simctl.list() throwing an error however if I run simctl stand alone in a node shell it returns a reasonable list of device simulators: https://gist.github.com/alexfoxy/998ad605cf42734bdc5c40231e3cadce

I discovered this issue whilst running cordova run ios.

System Specs

  • 1. sw_vers -productVersion
    10.12.1

  • 2. ios-sim --version
    5.0.12

  • 3. xcodebuild -version
    Xcode 8.1 - Build version 8T61a

  • 4. xcode-select --print-path
    /Applications/Xcode.app/Contents/Developer

  • 5. gcc --version
    Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
    Apple LLVM version 8.0.0 (clang-800.0.42.1)
    Target: x86_64-apple-darwin16.1.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions