_objc_retain "referenced: __ ARCLite__load error in Xcode 4.4

I recently upgraded to Xcode 4.4 and used it for some Mac App Store apps. Two worked fine, but the third gave this error:

Undefined symbols for architecture x86_64: "_objc_retain", referenced from: ___ARCLite__load in libarclite_macosx.a(arclite.o) (maybe you meant: _objc_retainedObject) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

ARC is off, so I don’t know where this link is from, or how to get rid of it. I tried the normal cleanup / build cycle, but to no avail.

Any thoughts?

+4
source share
3 answers

I think you should use the SDK 10.6 on Xcode 4.4, right? If so, please change the "Implicit Objective-C Link Runtime Support" to "NO."

+15
source

Is your base SDK below 5.0? I am using Xcode4.5 and getting the same error when creating iOS 4.2. After I changed it to iOS5.0 (or higher), the error disappeared.

Sorry, you were talking about the Mac application. But I think the reason may be the same. OK, I found the answer: change "Implicitly Objective-C Link Runtime Support" to NO, may work.

+1
source

I had the same issue in Xcode 7.0.1 with iOS 7.0. The solution was to change the deployment target from 7.0 to 7.1.

0
source

All Articles