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