尝试运行以下命令时:
brew tap wix/brew
brew install applesimutils
我的homebrew
失败,并显示以下内容:
Warning: Some installed formulae are not readable:
applesimutils: /usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:4: syntax error, unexpected <<, expecting keyword_end
<<<<<<< HEAD
^
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:17: syntax error, unexpected ===, expecting keyword_end
=======
^
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:23: syntax error, unexpected >>, expecting keyword_end
>>>>>>> Detox Instruments 1.10.10110
^
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:23: unexpected fraction part after numeric literal
>>>>>>> Detox Instruments 1.10.10110
我正在
Environment:
OS: macOS 10.14.5
Node: 10.15.3
Yarn: 1.16.0
npm: 6.4.1
Watchman: 4.9.0
Xcode: Xcode 10.2.1 Build version 10E1001
Android Studio: 3.4 AI-183.5429.30.34.5452501
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: ^0.55.4 => 0.55.4
我尝试做brew doctor
和brew cleanup
,但仍然遇到相同的错误。
谢谢
答案 0 :(得分:2)
这与排毒无关。
AppleSimUtils自述文件的troubleshooting section中介绍了解决此问题的方法:
如果Homebrew在
wix/brew
水龙头上抱怨冲突,请运行brew untap wix/brew && brew tap wix/brew
,然后尝试重新安装