rds*_*hck 7 xcode compiler-errors compilation objective-c clang
我正在尝试使用Xcode 4.6编译源代码,用于32位架构,但是收到此错误:
error: -fobjc-arc is not supported on platforms using the legacy runtime
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
怎么了?
Ala*_*lan 14
您将ARC(自动引用计数)与较旧的Objective-C 1.0运行时混合,后者不支持ARC.
OSX上的32位应用程序会自动使用1.0运行时,因此您必须为项目禁用ARC,并使用手动引用计数.