- 新建Podfile時,在vim環(huán)境編輯文本時貪圖方便直接拷貝的別的項目的Podfile代碼,并在文本編輯器中刪減操作會導(dǎo)致pod install的時候出現(xiàn)警告問題
Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
有道直譯: 你Podfile智能引用消毒。為了避免問題在未來,您不應(yīng)該使用文本編輯進行編輯。如果你不使用文本編輯,你應(yīng)該關(guān)掉智能報價在你的編輯器的選擇
意思: 不要使用文本編輯去編輯Podfile,使用Xcode編輯,或者使用終端敲命令去編輯(意思就是文本編輯的時候可能會出現(xiàn)中文的單引號‘把正確的英文單引號'替換掉了)
- 手賤更新mac系統(tǒng)到macOS High Sierra(版本10.13.1)導(dǎo)致cocoapods不能使用了,網(wǎng)上查了很多辦法都沒用最后只做了兩步就解決了(日了??了)
網(wǎng)上有說使用 sudo gem install cocoapods 可以解決的,我想說的是這個命令在10.12貌似就不起效果了吧。
至少我這里會報錯:ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
正確姿勢:
1、sudo gem update --system
2、sudo gem install -n /usr/local/bin cocoapods
經(jīng)過2步驟之后會輸出一堆東西,然后告訴你完成,這樣就可以了。