Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[Android][iOS][Dev-tool] Cannot read property 'IOSDevices' of undefined #2158

Closed
ghost opened this issue Feb 25, 2019 · 15 comments
Closed

[Android][iOS][Dev-tool] Cannot read property 'IOSDevices' of undefined #2158

ghost opened this issue Feb 25, 2019 · 15 comments
Labels

Comments

@ghost
Copy link

ghost commented Feb 25, 2019

Describe the bug

npm run ios, error

To Reproduce

TypeError: Cannot read property 'IOSDevices' of undefined
    at Command.run (/Users/zhangyue/.wx/modules/node_modules/_@weex-cli_run@2.0.0-beta.1@@weex-cli/run/commands/run.js:36:34)
    at Runtime.<anonymous> (/Users/zhangyue/.wx/core/node_modules/_@weex-cli_core@2.0.0-beta.1@@weex-cli/core/src/runtime/run.ts:62:43)
    at Generator.next (<anonymous>)
    at <anonymous> (/Users/zhangyue/.wx/core/node_modules/_@weex-cli_core@2.0.0-beta.1@@weex-cli/core/lib/runtime/run.js:7:71)
    at new Promise (<anonymous>)
    at __awaiter (/Users/zhangyue/.wx/core/node_modules/_@weex-cli_core@2.0.0-beta.1@@weex-cli/core/lib/runtime/run.js:3:12)
    at Runtime.run (/Users/zhangyue/.wx/core/node_modules/_@weex-cli_core@2.0.0-beta.1@@weex-cli/core/lib/runtime/run.js:23:12)
    at Cli.<anonymous> (/Users/zhangyue/.wx/core/node_modules/_@weex-cli_core@2.0.0-beta.1@@weex-cli/core/src/cli/cli.ts:316:44)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/zhangyue/.wx/core/node_modules/_@weex-cli_core@2.0.0-beta.1@@weex-cli/core/lib/cli/cli.js:4:58)

image

@ghost ghost added the Bug label Feb 25, 2019
@Gitsifu
Copy link

Gitsifu commented Feb 25, 2019

image
Same problem

@ghost
Copy link
Author

ghost commented Feb 25, 2019

image
Same problem

Google search failed to find a solution

@ghost
Copy link
Author

ghost commented Feb 25, 2019

I am in a state of collapse

@loupengju
Copy link

I have a same problem

@humbass
Copy link

humbass commented Feb 26, 2019

the same problem, even I use "weex run web" or "weex run android"

@ghost
Copy link
Author

ghost commented Feb 26, 2019

the same problem, even I use "weex run web" or "weex run android"

Don't use the latest version

@ghost
Copy link
Author

ghost commented Feb 26, 2019

I have a same problem

Don't use the latest version

@humbass
Copy link

humbass commented Feb 26, 2019

the same problem, even I use "weex run web" or "weex run android"

Don't use the latest version

Thank you gay.

@erha19
Copy link
Contributor

erha19 commented Feb 26, 2019

@humbass @BengBu-YueZhang @HelloMrJay @Gitsifu

Fixed weexteam/weex-toolkit@2e0964b.

Try flowing command to fix this case:

$ weex repair @weex-cli/run@latest

@Gitsifu
Copy link

Gitsifu commented Feb 26, 2019

@humbass @BengBu-YueZhang @HelloMrJay @Gitsifu

Fixed weexteam/weex-toolkit@2e0964b.

Try flowing command to fix this case:

$ weex repair @weex-cli/run@latest

The following bug has appeared
image

@erha19
Copy link
Contributor

erha19 commented Feb 26, 2019

@Gitsifu did you use the project generated by weex-toolkit ? looks this project was your personal project.

@Gitsifu
Copy link

Gitsifu commented Feb 26, 2019

@erha19 I used weex-toolkit, but there is still a problem. The figure below is the version I am using. Is there a conflict in the version?
image

@erha19
Copy link
Contributor

erha19 commented Feb 26, 2019

@Gitsifu that's my mistakes, try weex platform update android then run the weex run android command again.

@Gitsifu
Copy link

Gitsifu commented Feb 27, 2019

@erha19 Successful

@YorkShen
Copy link
Contributor

It seems the problem has been solved, I will just close the PR.

Feel free to reopen it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants