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



转载于:https://www.cnblogs.com/Leean/p/5311787.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值