cocopods xcode設定預設版本

2021-10-03 21:35:31 字數 1542 閱讀 4225

1.可以通過gem list --local | grep cocoapods命令檢視我們電腦上安裝了哪些版本的 cocoapods,並通過pod --version檢視系統預設使用的那個版本。:

2.刪除某個版本:sudo gem uninstall cocoapods 1.9.1

3.安裝指定版本:sudo gem install cocoapods -v 1.4.0

4pod 檢視當前源:

1).進入當前原:cd ~/.cocoapods/repos

2).pod 檢視當前源:pod repo 或者 pod repo list

pod repo換源:

(修改 repo 的 master)

cd ~/.cocoapods/repos

(git clone ~/.cocoapods/repos/master 切換github為master)

$ pod repo remove master
$ git clone  ~/.cocoapods/repos/master

$ pod repo update

5.如果快速跳過 pod update 的時候去 更新 master repo : 

解決方案是 pod update 分兩步

1),只跟新指定 repo 比如:pod repo update somerepo, 就只更新 somerepo 這乙個 repo

2),pod update —no-repo-update

6.git報錯--rpc failed; curl 18 transfer closed with outstanding read data remaining

error: rpc failed; curl 18 transfer closed with outstanding read data remaining

fatal: the remote end hung up unexpectedly

fatal: early eof

fatal: index-pack failed

解決方法: git config --global http.postbuffer 524288000

參看文獻: 7.

$ gem sources --remove  # 移除預設源

$ gem sources -a # 新增ruby china映象

$ gem sources -l

8.cocoapods 無法連線github:

9.快速更新cocoapods/specs:

10徹底解決github被牆,cocoapods和homebrew無法使用問題:

11.修改host 檔案:sudo vim /etc/hosts

儲存設定 設定 CATIA自動儲存設定

問題 在使用catia設計時,大約每隔半小時就會遇到一次 卡死 特別是設計任務較為複雜時,卡死 的時間會較長,此時我們只好暫停設計工作,等待恢復 多數情況下 這是catia在自動儲存時的 卡滯 而不是真正的 卡死 目的就是防止沒有主動儲存習慣的小夥伴,遇見 意外情況 真正 卡死 後,重啟catia還...

pycharm 常用設定設定

1.自動加冒號 換行 complete current statement ctrl shift enter 與虛擬機器衝突 修改為 ctrl shift 2.儲存成模板 ctrl shift l live template 3.設定 pycharm 注釋字型顏色 setting font lang...

linux centos ip設定網絡卡設定

1 自動獲取ip位址 虛擬機器使用橋接模式,相當於連線到物理機的網路裡,物理機網路有dhcp伺服器自動分配ip位址。dhclient 自動獲取ip位址命令 ifconfig 查詢系統裡網絡卡資訊,ip位址 mac位址 分配到ip位址後,用物理機進行ping ip位址,檢測是否ping通。2 手動設定...