Created
December 10, 2012 06:59
-
-
Save mactive/4248926 to your computer and use it in GitHub Desktop.
方法整理:3.ARC 下加载第三方SDK,组件 (IOS iPhone Object-C)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
由于现在大部分SDK,第三方组件都是 ios5之前发布的, 所以都不会用到ARC | |
但是如果我想使用苹果新的特性ARC的话,难道要手动改那些组件,sdk? | |
no, 其实有个超简单的方法, | |
xcode 中 点选你的项目 ---> Bulid Phases ---> Compile Source | |
然后选择 那些没有使用ARC的 sdk 或者 组件 的.m文件, | |
加上 -fno-objc-arc 这个flag | |
这样这个文件在编译的时候就不会使用ARC | |
这比一点点改原来的sdk方便多了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment