解决办法:(老外的话)
You need to turn off Automatic Reference Counting. You do this by clicking on your project in the navigator (the top item in the finder-like thing on the left), then click on your target, select "Build Settings" and turn off the option "Objective-C Automatic Reference Counting" (you can use the search field on the upper right to search it).
在项目导航栏 视图模式下里 ,选中即点击你出错的项目(target),代码编辑视图会切换为项目属性列表视图,选择Building Setting选项卡,之后在搜索框中搜索关键字auto
你会在搜索列表中发现 有这么一项 Objective-C Automatic Reference Counting , 吧该值切换为NO(取消自动释放模式)即可。
本文介绍了一种解决Objective-C项目编译时出现的问题的方法,即通过关闭自动引用计数(ARC)功能来修复错误。具体步骤包括在Xcode中定位到项目的构建设置并调整相关选项。

3225

被折叠的 条评论
为什么被折叠?



