我根据github方向安装了rbenv.我正在运行OSX,但我在Ubuntu 12.04 VM上尝试了这个并得到了相同的结果.当我尝试更改ruby版本时,以下是我在终端中获得的内容:
rbenv versions
* 1.9.3-p0 (set by /Users/user/.rbenv/version)
1.9.3-p125
rbenv global
1.9.3-p0
rbenv rehash
ruby -v
ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0]
which ruby
/usr/bin/ruby
Run Code Online (Sandbox Code Playgroud)
任何人都有任何想法为什么rbenv没有像它认为的那样切换ruby版本?此外,本地目录中没有.rbenv文件会导致ruby版本默认为1.8.7
rbenv local
rbenv: no local version configured for this directory
Run Code Online (Sandbox Code Playgroud) 我在安装和配置flutter时遇到问题
在Mac OS Sierra 10.12.6上
Xcode 9.2
brew医生报告一切都好
扑医生报道
[!] iOS工具链 - 为iOS设备开发(Xcode 9.2)
? **libimobiledevice and ideviceinstaller are not installed. To install, run:
brew install --HEAD libimobiledevice
brew install ideviceinstaller**
Run Code Online (Sandbox Code Playgroud)
提示$:brew install --HEAD libimobiledevice
==>克隆https://git.libimobiledevice.org/libimobiledevice.git 更新/ Users/rjoiner/Library/Caches/Homebrew/libimobiledevice - git
==>检查分支主数据已经在'主'上您的分支是最新的'origin/master'.HEAD现在位于b34e343工具:删除设备UDID参数的长度检查以支持更新的设备
==> ./autogen.sh来自/Users/rjoiner/Library/Logs/Homebrew/libimobiledevice/01.autogen.sh的最后15行:检查动态链接器特性... darwin16.7.0 dyld检查如何将库路径硬编码到程序中...立即检查pkg-config .../usr/local/opt/pkg-config/bin/pkg-config
检查pkg-config至少是版本0.9.0 ...是检查libusbmuxd> = 1.1.0 ...没有配置:错误:未满足包要求(libusbmuxd> = 1.1.0):
请求'libusbmuxd> = 1.1.0'但libusbmuxd的版本是1.0.10
我不知道如何安装libusbmuxd 1.1.0版
干杯
抢
我知道此问题之前已被问过,我会回答问题的答案,但我仍然面临这个错误.
[!]无法连接到GitHub以更新CocoaPods/Specs规格repo - 请检查您是否处于脱机状态,或者GitHub是否已关闭
以前在一周之前pod update命令工作正常,但现在当我运行该命令时,它每次都给我同样的错误.
我试过以下解决方案.
2.
pod repo remove master
pod setup
pod install
Run Code Online (Sandbox Code Playgroud)
3.
$sudo rm -fr ~/.cocoapods/repos/master
$pod setup
$pod install
Run Code Online (Sandbox Code Playgroud)