-1

我尝试打开模拟器,但 VSCode 告诉我:

open : The term 'open' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path 
was included, verify that the path is correct and try again.
At line:1 char:1
+ open -a simulator
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (open:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
4

1 回答 1

-1

PowerShell 的搜索路径与bash和不同sh。要在 macOS 上从 PowerShell 打开模拟器,您需要:

/usr/bin/open -a simulator
于 2019-09-02T21:39:37.300 回答