-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'devicetypes' of undefined #268
Comments
Maybe you can check whether the command line tool for Xcode is specified: |
I updated to Xcode 11.4 and started running into this issue. |
It looks like the JSON output of
This breaks |
Actually, it looks like this was already fixed in the latest 9.0.0 release. I was still using 9.0.0-dev.4. Updating to the latest version fixes my issue. |
in my cases,until I allow command line in Xcode-perferences-locations, I fix it |
I am already using the 9.0.0 release (ios-sim/9.0.0 darwin-x64 node-v11.4.0) which g++ Please suggest |
I think I am having the same issue, running
Command line tools preference in Xcode is set to Xcode 11.5 |
You might need to
Now do
|
I'm getting the following message when running "ios-sim showdevicetypes":
TypeError: Cannot read property 'devicetypes' of undefined
at fixSimCtlList (/usr/local/lib/node_modules/ios-sim/src/helpers.js:12:38)
at getDeviceTypes (/usr/local/lib/node_modules/ios-sim/src/helpers.js:30:10)
at ShowDeviceTypesCommand.run (/usr/local/lib/node_modules/ios-sim/src/commands/showdevicetypes.js:7:25)
at ShowDeviceTypesCommand._run (/usr/local/lib/node_modules/ios-sim/node_modules/@oclif/command/lib/command.js:44:31)
Assafs-MacBook-Pro:ReleaseForRunning-iphonesimulator hershko$ ios-sim showdevicetypes
TypeError: Cannot read property 'devicetypes' of undefined
at fixSimCtlList (/usr/local/lib/node_modules/ios-sim/src/helpers.js:12:38)
at getDeviceTypes (/usr/local/lib/node_modules/ios-sim/src/helpers.js:30:10)
at ShowDeviceTypesCommand.run (/usr/local/lib/node_modules/ios-sim/src/commands/showdevicetypes.js:7:25)
at ShowDeviceTypesCommand._run (/usr/local/lib/node_modules/ios-sim/node_modules/@oclif/command/lib/command.js:44:31)
In case it helps:
The ios-sim version is "ios-sim/9.0.0 darwin-x64 node-v13.11.0".
Node version is "v13.11.0".
macOS Catalina, Xcode 11.3.1.
Thanks :)
The text was updated successfully, but these errors were encountered: