MacDev.GarbageCollectionIsDeprecated-WhenXcodeCompileMacAppProject
Garbage Collection is not supported
当Xcode编译Mac OSX App时报错:"Garbage Collection is not supported
" 的解决办法:
1. 不需要迁移到ARC仍然可以编译通过
"If your project is imported from Xcode 3.x and you want to use ARC, you will have the following error at compile time :
1
2
|
Garbage Collection is deprecated ;
use the "Convert to Objective-C ARC" menu command to switch to Automatic Reference Counting
|
To get rid of this, edit the project and remove anything you see under GCC_ENABLE_OBJC_GC.
This will remove the -fobjc-gc parameter from the gcc commands and you will be able to use the smart ARC." Ref[2]
2. Mac Apps不能再使用garbage collection
"Beginning May 1, 2015, new Mac apps and app updates submitted to the Mac App Store may no
longer use garbage collection, which was deprecated in OS X Mountain Lion. Instead, migrate
your apps to Automatic Reference Counting, using the migration assistant in Xcode to help with this transition.
Apps may continue to use retain/release for manual memory management. For more information,
read theTransitioning to ARC Release Notes." Ref[1]
Reference
1. Mac Apps That Use Garbage Collection Must Move to ARC
https://developer.apple.com/news/?id=02202015a
2. MyVeryLittleTricks Miscellaneous
http://myverylittletricks.net/code/?page_id=79
转载于:https://www.cnblogs.com/cwgk/p/4574005.html
MacDev.GarbageCollectionIsDeprecated-WhenXcodeCompileMacAppProject相关推荐
- xCode中工程相关的一些处理:一个工程包含多个Target的用途和使用方法【转】...
[转自:http://www.cocoachina.com/macdev/cocoa/2010/0120/347.html] 对于target,Apple的官方解释是这样的:" Target ...
- 关于IOS开发知识的总结
IOS开发特别备注: IOS 7 UI适配方法 http://blog.sina.com.cn/s/blog_6fd90b5b0101cy50.html http://forum.bee-framew ...
- (转) Core Animation 简介
原文出处:(http://hi.baidu.com/zijian0428/blog/item/6085e5fe8ff987225d60083b.html) 1. 简介 Core animatio ...
- 使用TFHpple解析html
https://github.com/topfunky/hpple 前期准备工作 引入静态库文件 添加库文件的 header search paths(注意,必须选中 All) 将从github上下载 ...
- 介绍MFSideMenu左右滑动控件的使用
昨天刚写完侧滑菜单的实例,今天在CocoaChina网站上看到一篇非常好的侧滑菜单设计案例文章,分享给大家.http://www.cocoachina.com/macdev/uiue/2013/071 ...
- Objective-C 的 self 和 super 详解
在 Objective-C 中的类实现中经常看到这两个关键字 "self" 和 "super",以以前 oop 语言的经验,拿 c++ 为例,self 相当于 ...
- NIB 和 XIB 的区别 转载
NIB 和 XIB 都是 InterfaceBuilder 的图形界面设计文档.引用<Cocoa Programming for Mac OSX>一书的说法,InterfaceBuilde ...
- Pinterest 3.0 for iOS设计过程——升级iOS7设计思路详解
Pinterest 3.0 for iOS设计过程--升级iOS7设计思路详解 时间2013-12-11 11:39:31 苹果开发中文站 原文 http://www.cocoachina.com ...
- consul命令行查看服务_Consul 命令行最全文档
1.启动一个带ACL 控制的Agent 首先,从这个网址下载consul,解压后发现就是个可执行文件,如果不可以执行,chmod +x consul 一下. 为了试验Consul较多的功能,这里我们打 ...
- iphone开发相关的网站
首先声明一下,apple的官方文档是最重要的,一下网站只是本人学习过程中存在问题时,所寻找的相关帮助网页,有时间的话,对每一个网页写一些注释吧 sqllite相关 http://iwins.blog. ...
最新文章
- Oracle系统用户的默认密码及功能
- 最实用的Office使用技巧
- gradle插件用户指南(翻译)
- Google Gears 体验(2):本机 web 服务器
- 安装中文VS2008 SP1 和.NETFRAMEWORK 3.5SP1后智能提示是英文的解决办法
- 字节跳动冬令营报名启动,邀你一起备战ICPC世界总决赛!
- EDA软件_AD14绘制等长线
- hadoop源码编译(从0到1一步步教你如何编译,适用于任何hadoop版本)
- 陈经纶2021年高考成绩查询时间,2020北京市地区高考成绩排名查询
- 平安保险的万能险怎么样?
- 长沙.NET技术社区正式成立
- 3.计算机网络——加密,数字签名,数字证书
- C++——百分制成绩转五分制成绩
- VBA AutoExec 宏
- 鲁能群英荟萃 萝卜开会
- 一维离散小波变换原理和代码实现
- IE下载附件,文件大小超过10M后 无法下载
- 2022-2028年中国特种食用油行业市场运营格局及前景战略分析报告
- Cardinality_estimate
- buu [AFCTF2018]One Secret, Two encryption