Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个安装了 WhiteRaccoon 框架的应用程序。我无法编译它,因为它给了我与 WhiteRaccoon.m/h 中的保留或释放有关的任何错误。有什么想法吗?谢谢。 顺便说一句,我已经添加了 CFNetwork 框架。有任何想法吗?
您的项目可能正在使用 ARC,而 WhiteRaccoon 可能不是。
您可以将 whiteRaccoon(无论是什么)转换为 ARC 或通过将以下编译器标志添加到它的源文件来排除 whiteRaccoon 文件-fno-objc-arc。
-fno-objc-arc
为此,请单击左侧的项目,然后转到“Build Phases”->“Compile Sources”,查找白色 Raccoon .m 文件并在编译器标志部分下添加 -fno-objc-arc。
另一种选择是将 WhiteRaccoon 框架编译成一个静态库,并将其作为您的项目。