在ARC中使用weak报错和文件目录找不到的解决方法

1:在使用XMPPFramework中,一个文件中报出The current deployment target does not support automated __weak references这种错误。

解决方法就是把iOS Deployment Target 改到iOS5或以上就可以了。

 

2:在项目中出现“Directory not found for option”这样的警告时,一般式由于拷贝文件出错导致的。

解决方法就是到Targets中找到Build Settings,在这里搜索Library Search Paths,找到后把里面的错误地址都删除掉,就解决了由此带来的警告。

 

 

 

你可能感兴趣的:(weak)