xcode7.3遇到的問題


今天剛升級了新版本目前遇到2個問題 

問題1.Cannot create __weak reference in file using manual reference counting

解決方法1:bulid settings -> 搜索weak ,找到下圖箭頭所指(Apple LLVM7.1 - Languague - Object C) 結尾是OC的那個,NO改為YES

方法2:把_weak 更換為__unsafe_unretained 

在http://stackoverflow.com/questions/36147625/xcode-7-3-cannot-create-weak-reference-in-file-using-manual-reference-counting/36172977#36172977我也回答了,要是解決了你的問題,歡迎來點贊

 

 

問題2:Operation not permitted - /usr/bin/pod

升級了OX 10.11.4,cocoapods 莫名木有了,重新安裝跳出來 Operation not permitted - /usr/bin/pod,

原因是蘋果 enabled rootless on the new install 

直接的解決方法:sudo gem install -n /usr/local/bin cocoapods 

永久解決:設置該屬性無效 

sudo nvram boot-args="rootless=0"; sudo reboot

安裝cocoapod:sudo gem install cocoapods

參考:http://stackoverflow.com/questions/30812777/cannot-install-cocoa-pods-after-uninstalling-results-in-error




免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM