Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

_objc_retain", referenced from:__ARCLite__load error in Xcode 4.4

I've recently upgraded to Xcode 4.4 and have been using it for some Mac App Store submissions. 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 turned off so I don't know where this reference is coming from, or how to get rid of it. I've tried the usual clean/build cycle but to no avail.

Any thoughts?

like image 343
Rev. Andy Avatar asked Jul 31 '12 19:07

Rev. Andy


2 Answers

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

like image 159
aleon Avatar answered Sep 23 '22 13:09

aleon


Is your base sdk lower than 5.0? I'm using Xcode4.5, and get the same error when i building with iOS 4.2.After I changed it to iOS5.0(or above), the error disappeared.

I'm sorry,you talked about Mac app.But i think the reason may be the same. OK,i found an answer: Change "Implicitly Link Objective-C Runtime Support" to NO may work.

like image 30
ChenXin Avatar answered Sep 25 '22 13:09

ChenXin