首页 > 其他 > 详细

xcode7.3遇到的问题

时间:2016-03-23 16:52:59      阅读:141      评论:0      收藏:0      [点我收藏+]

今天刚升级了新版本目前遇到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



xcode7.3遇到的问题

原文:http://www.cnblogs.com/Leean/p/5311787.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!