既然本地cocoapods版本比较低,那就得升级CocoaPods版本
查看版本 pod --version
Last login: Tue Oct 20 17:28:55 on ttys001
asddfff:~ a1$ sudo gem install cocoapods
Password:
Fetching: ffi-1.13.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed ffi-1.13.1
Fetching: ethon-0.12.0.gem (100%)
Successfully installed ethon-0.12.0
Fetching: typhoeus-1.4.0.gem (100%)
Successfully installed typhoeus-1.4.0
Fetching: cocoapods-core-1.9.3.gem (100%)
Successfully installed cocoapods-core-1.9.3
Fetching: cocoapods-deintegrate-1.0.4.gem (100%)
Successfully installed cocoapods-deintegrate-1.0.4
Fetching: cocoapods-downloader-1.4.0.gem (100%)
Successfully installed cocoapods-downloader-1.4.0
Fetching: cocoapods-trunk-1.5.0.gem (100%)
Successfully installed cocoapods-trunk-1.5.0
Fetching: molinillo-0.6.6.gem (100%)
Successfully installed molinillo-0.6.6
Fetching: atomos-0.1.3.gem (100%)
Successfully installed atomos-0.1.3
Fetching: nanaimo-0.3.0.gem (100%)
Successfully installed nanaimo-0.3.0
Fetching: xcodeproj-1.19.0.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
asddfff:~ a1$ sudo gem install -n /usr/local/bin cocoapods
Successfully installed xcodeproj-1.19.0
Fetching: fourflusher-2.3.1.gem (100%)
Successfully installed fourflusher-2.3.1
Fetching: ruby-macho-1.4.0.gem (100%)
Successfully installed ruby-macho-1.4.0
Fetching: cocoapods-1.9.3.gem (100%)
Successfully installed cocoapods-1.9.3
Parsing documentation for xcodeproj-1.19.0
Installing ri documentation for xcodeproj-1.19.0
Parsing documentation for fourflusher-2.3.1
Installing ri documentation for fourflusher-2.3.1
Parsing documentation for ruby-macho-1.4.0
Installing ri documentation for ruby-macho-1.4.0
Parsing documentation for cocoapods-1.9.3
Installing ri documentation for cocoapods-1.9.3
Done installing documentation for xcodeproj, fourflusher, ruby-macho, cocoapods after 15 seconds
4 gems installed
网友评论