[iOS_xcode异常报错][__NSCFNumber surface] 和 ARC forbids explicit message send of 'release'错误解决办法
来源:互联网 发布:软件测试社区 编辑:程序博客网 时间:2024/06/17 08:15
unity工程打包xcode工程后,在真机运行时进入不了游戏,xcode报这个错误:
A错误:[__NSCFNumber surface]: unrecognized selector sent to instance 0xb000000e6bd79a83
产生这个错误时,一脸懵逼,以为是自己的代码出错了,
后来发现这个错误是在解决
B错误:ARC forbids explicit message send of 'release'这个错误所用的方法产生的问题
解决B错误有两个方法:
1.禁用在Xcode中的特定文件的ARC
点击项目名,在中间一栏选择targets,然后选择build phases选项。
展开Compile Sources,找到你报错的文件名,然后双击添加-fno-objc-arc
2:把整个项目改成非arc机制的:
在build Settings中:把Objective-C Automatic Reference Co....设为NO:
当用方法2的时候就会产生A的报错,使用方法1A和B的错误都解决
阅读全文
0 0
- [iOS_xcode异常报错][__NSCFNumber surface] 和 ARC forbids explicit message send of 'release'错误解决办法
- ios报错: arc forbids explicit message send of release 的解决办法
- 关于“ARC forbids explicit message send of release”错误
- ARC forbids explicit message send of'release 错误
- Xcode4.5 ARC forbids explicit message send of'release 错误
- ARC forbids explicit message send of release 错误
- 类似ARC forbids explicit message send of'release' 错误解决
- 关于“ARC forbids explicit message send of release”错误
- ARC forbids explicit message send of release 错误
- OC中ARC forbids explicit message send of release错误
- OC中ARC forbids explicit message send of release错误
- 关于“ARC forbids explicit message send of release”错误
- iOS错误:ARC forbids explicit message send of'release'
- 关于“ARC forbids explicit message send of release”错误
- 关于“ARC forbids explicit message send of release”错误
- 错误: ARC forbids explicit message send of 'release'
- OC中ARC forbids explicit message send of release错误
- ARC forbids explicit message send of'release 错误
- 文件上传
- 假设检验
- 线程/GIL/线程锁/信号量/守护进程/Event事件/queue队列/生产者消费者模型
- js input 监听所有格式是否正确 不使用插件
- Groovy入门笔记
- [iOS_xcode异常报错][__NSCFNumber surface] 和 ARC forbids explicit message send of 'release'错误解决办法
- escape()、encodeURI()、encodeURIComponent()区别详解
- 有关SFINAE的一个小应用
- MySQL数据库 使用MyBatis做持久化时 数据库命名带下划线的列获取不到
- 设置
- jsp相册管理小项目
- Spring data jpa 方法命名规则
- lintcode 最大子数组(Maximum Subarray )(Java)
- js