老機器被我折磨壞了坑律,買了一款新機器岩梳,又要重新開始配環(huán)境,做一點記錄晃择,給自己也給有需要的朋友冀值。
1.安裝HomeBrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安裝Cocoapods
先安裝rvm【如果沒有的話】
curl -L https://get.rvm.io | bash -s stable
載入 RVM 環(huán)境(新開 Termal 就不用這么做了,會自動重新載入的)宫屠。
source ~/.rvm/scripts/rvm
安裝ruby
rvm list known
rvm install 2.3.0
【注:2.3.0是版本號列疗,可以根據自己需要修改】
檢查ruby 源
gem sources -l
移除ruby 源
gem sources --remove https://rubygems.org/
添加源
gem sources -a https://ruby.taobao.org/
【注:新版添加可能會有報錯,解決方法如下】
Error fetching https://gems.ruby-china.org/:
bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)
原因是?ruby-china 更換了域名
https://gems.ruby-china.com
命令替換為?gem sources --add https://gems.ruby-china.com 解決
安裝gem ruby的環(huán)境
gem update --system
檢查gem版本
gem -v
cocoapods安裝
sudo gem install cocoapods
檢查是否安裝成功并且進行初始化配置
pod setup
pod search 'FMDB'
3.同時安裝python3和python2以及pip3和pip2
brew install python
brew install python@2
【注:第一個命令是安裝python3和pip3浪蹂,第二天命令是安裝pip2抵栈,因為mac自帶有python2.7,所以無需安裝python2】
4.pycharm破解
下載安裝好之后再Licence server輸入一下地址
http://xidea.online
5.安裝越獄設備檢測實時log查看工具
ios日志查看工具--idevicesyslog
brew install libimobiledevice
測試一下
idevicesyslog -u 手機的UDID
【注:如果出現(xiàn)下面報錯】
ERROR: Could not start service com.apple.syslog_relay. Could not start logger for udid 860e4312********75442b0ec351
請執(zhí)行
brew install -v --HEAD? --fresh? --build-from-source libimobiledevice
sudo chmod777/var/db/lockdown
菜鳥走向大牛乌逐,大家共同前進竭讳,如果覺得不錯,請給個贊/關注浙踢。
一起交流學習绢慢,有問題隨時歡迎聯(lián)系,郵箱:383708669@qq.com