使用release报错arc forbids explicit message send of 'release'

来源:互联网 发布:centos 6.5搭建lnmp 编辑:程序博客网 时间:2024/05/18 17:00


   使用release报错arc forbids explicit message send of 'release'

   

  原因:新建工程的时候使用了ARC功能,即点选了“Use Automatic Reference Counting”选项

  打开“Build Setting”,找到"CLANG_ENABLE_OBJC_ARC" 将它的值设置成NO

  这样ARC功能就关闭了

  

0 0
原创粉丝点击