. pod update warning Insecure world writable mode 040777
在利用命令行操作CocoaPods時岸浑,可能會遇到這樣的 warning: Insecure world writable dir xxxxx in PATH, mode 040777,但是卻又不妨礙使用瑰步。
提示含義: 目錄被賦予777的權限矢洲,不安全。
如何解決:將提示權限改為775缩焦,問題即可解決读虏。
具體實現(xiàn):
在終端寫入下列命令行,即可消除上面的提示袁滥。xxxxx 是 warning 中提示的文件路徑
sudo chmod go-w xxxxx
sudo chmod 775 xxxxx
. You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory
使用命令 sudo gem install cocoapods 安裝 cocoapods盖桥,仍然提示沒有權限,
可以使用 sudo gem install -n /usr/local/bin cocoapods
[!] Authentication token is invalid or unverified. Either verify it with the email that was sent or register a new session.
解決方法:使用下面的命令重新注冊题翻,完成后會提示你到郵件中進行驗證揩徊,點擊一下郵件中的鏈接即可。然后就可以繼續(xù)提交你的 pod 了
pod trunk register yourEmail@example.com 'Your Name'
- ERROR | [iOS] unknown: Encountered an unknown error (Could not find aiossimulator (valid values: ). Ensure that Xcode -> Window -> Devices has at least oneiossimulator listed or otherwise add one.) during validation.
解決方法:使用下面的命令更新 cocoapods。我是 XCode 11.1 出現(xiàn)的這個問題塑荒。
sudo gem update cocoapods
如果上面的命令不行熄赡,依次執(zhí)行下面 3 個命令
sudo gem uninstall fourflusher
sudo gem install fourflusher
sudo gem update cocoapods