禁用在Xcode中的特定文件的ARC
来源:互联网 发布:android 打开淘宝店铺 编辑:程序博客网 时间:2024/06/06 02:06
ARC (Automatic Reference Count) was introduced with XCode 4.2. This means that you no longer have to release, autorelease, or retain in your code. This makes it easier when writing code but a little difficult when importing or copying code snippets from existing code written for older versions. You might get errors such as
'release' is unavailable: not available in automatic reference counting mode
or
ARC forbids explicit message send of 'release'
or
ARC forbids explicit message send of 'autorelease'
'release' is unavailable: not available in automatic reference counting mode
or
ARC forbids explicit message send of 'release'
or
ARC forbids explicit message send of 'autorelease'
To avoid these errors, you can disable arc for your imported files. Here is how:
1. Click on your project in the Project Navigator, and then on the Target.
2. Under "Build Phases", expand "Compile Sources".
3. Click on the file you want to edit and type in -fno-objc-arc. It should appear in the "Compiler Flags" column.
3. Click on the file you want to edit and type in -fno-objc-arc. It should appear in the "Compiler Flags" column.
- 禁用在Xcode中的特定文件的ARC
- 关于Xcode中的特定文件的ARC相关资料
- 在某些文件中禁用ARC
- Xcode中禁用单个类文件不使用ARC
- Xcode 5 如何禁用某个文件ARC(Automatic Reference Counting)
- 如何禁用ARC xcode 4.2 disable ARC
- 如何对iOS5项目中的特定文件关闭ARC
- 对单个文件禁用arc
- 为单个文件禁用ARC
- Xcode6.2如何关闭特定文件的ARC功能
- 在IIS中禁用特定MIME类型的缓存
- Xcode ARC的引入
- xcode 单个文件arc支持
- 在支持ARC工程中编译不支持ARC的文件
- 非ARC的文件在ARC项目中使用
- 非ARC的文件在ARC项目中使用
- 如何让特定文件不使用ARC
- 在XCode上禁用indexing
- HALCON算子函數——Chapter 9 : Matching
- HALCON算子函數——Chapter 8 : Lines
- HALCON算子函數——Chapter 7 : Image
- float的内存结构
- hdoj 1584(没有使用队列的dfs)
- 禁用在Xcode中的特定文件的ARC
- samba3.5.10的smb和nmb是分开启动的
- 古琴
- HALCON算子函數——Chapter 6 : Graphics
- 编译器和解释器的区别和联系
- 查询oracle10G启动时的时间和运行的时间
- 建设局项目总结(二)——最囧的一个星期
- HALCON算子函數——Chapter 5 : Filter
- HALCON算子函數——Chapter 4 : File