即使安装了1.9.3,Pod版本也会报告1.9.0

时间:2020-06-04 09:32:27

标签: cocoapods

为什么在我安装1.9.3时,pod版本会报告1.9.0?

MBP:myfolder user$ gem install cocoapods
Successfully installed cocoapods-1.9.3
Parsing documentation for cocoapods-1.9.3
Done installing documentation for cocoapods after 2 seconds
1 gem installed
MBP:myfolder user$ pod --version
1.9.0 
MBP:myfolder user$ which pod
/Users/user/.rvm/gems/ruby-2.7.1/bin/pod
MBP:myfolder user$ gem list --local | grep cocoapods
cocoapods (1.9.3)
cocoapods-core (1.9.3)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.3.0)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.1.0)
cocoapods-trunk (1.5.0)
cocoapods-try (1.2.0)
MBP:myfolder user$ cd 
MBP:~ user$ cd -
/Users/user/Development/myfolder
MBP:myfolder user$ cd /Users/user/.rvm/gems/ruby-2.7.1/bin
MBP:bin user$ ls -la
total 24
drwxr-xr-x   5 user  staff  160 Jun  4 02:23 .
drwxr-xr-x  11 user  staff  352 Jun  3 22:29 ..
-rwxr-xr-x   1 user  staff  549 Jun  4 02:23 pod
-rwxrwxr-x   1 user  staff  644 Jun  3 22:29 ruby_executable_hooks
-rwxr-xr-x   1 user  staff  565 Jun  4 02:23 sandbox-pod
MBP:bin user$ rm pod
MBP:bin user$ rm sandbox-pod 
MBP:bin user$ ls -la
total 8
drwxr-xr-x   3 user  staff   96 Jun  4 02:24 .
drwxr-xr-x  11 user  staff  352 Jun  3 22:29 ..
-rwxrwxr-x   1 user  staff  644 Jun  3 22:29 ruby_executable_hooks
MBP:bin user$ cd -
/Users/user/Development/myfolder
MBP:myfolder user$ which pod
MBP:myfolder user$ pod --version
-bash: pod: command not found
MBP:myfolder user$ sudo gem install cocoapods
Password:
Fetching cocoapods-1.9.3.gem
Successfully installed cocoapods-1.9.3
Parsing documentation for cocoapods-1.9.3
Installing ri documentation for cocoapods-1.9.3
Done installing documentation for cocoapods after 1 seconds
1 gem installed
MBP:myfolder user$ pod --version
1.9.0
MBP:myfolder user$ which pod
/Users/user/.rvm/rubies/ruby-2.7.1/bin/pod
MBP:myfolder user$ gem update cocoapods
Updating installed gems
Nothing to update
MBP:myfolder user$ which pod
/Users/user/.rvm/rubies/ruby-2.7.1/bin/pod
MBP:myfolder user$ pod --version
1.9.0
MBP:myfolder user$ 

if you do bundle exec pod install Some

CocoaPods 1.9.3 is available.
To update use: gem install cocoapods

rvm list
=* ruby-2.7.1 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

谢谢!

0 个答案:

没有答案