TTURLJSONResponse Undefined symbols for architecture i386 - iphone

Good Day!
I tried to recreate the sample TTFacebook Project of the three20 samples in an XCode4 IDE, but I got this error about TTURLJSONResponse
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_TTURLJSONResponse", referenced from:
objc-class-ref in FacebookSearchFeed.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
thanks, much love and respect

Make sure you added Three20:extThree20JSON+YAJL or Three20:extThree20JSON+SBJSON to your project (either manually or via ttmodule.py), also make sure they compile fine (look if the binaries are not red in your project Build Phases).

Related

Upgrade from Facebook iOS SDK 3.2.1 to 3.5 gave me an error with FBCrypto

After installing the new sdk I cleaned the project and build it. It fails with this message:
Undefined symbols for architecture i386:
"_SecRandomCopyBytes", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
"_kSecRandomDefault", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Same problem anyone? Solutions?
Well, you need to include the security framework and the libsqlite3.dylib as stated here.
It works now.
edit
Also found this now...
Jumping on this, im running into the same issue, I saw that the FBSDK needs the Security, AdSupport, etc. Here's my linked libraries:
My error is the same:
Undefined symbols for architecture i386:
"_SecRandomCopyBytes", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
"_kSecRandomDefault", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
All the other framework dependencies are good to go as far as I can tell. A Vlean->Build didn't fix it either. Thanks.
Edit: Got it. I needed to re Add Files to Project and check the Add to Target button.. basically XCode automagicka

Error in coredata?

I am developing an app that saving an url using coredata.I am defining NSManagedObjectContext,NsManagedObjectModel,NSPersistentStoreCoordinator in CoreDataRepository object class instead of AppDelegate.I am saving this url using reference of CoreDataRepository.I am getting below error.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CoreDataRepository", referenced from:
objc-class-ref in HomeViewController.o
objc-class-ref in DashBoardUrlViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any idea about this error.Thanks.
The linker can't find your CoreDataRepository class. Look in your target's Build Phases and add that source or library to either the compile or link phase, depending on where it's defined.

libRestKitThree20 library is getting error

I have included restkit in project and when i build restkit, it builds successful. But when I build project, it gives 6 errors:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_TTModel", referenced from:
_OBJC_CLASS_$_RKObjectLoaderTTModel in libRestKitThree20.a(RKObjectLoaderTTModel.o)
"_OBJC_CLASS_$_TTTableLinkedItem", referenced from:
_OBJC_CLASS_$_RKMappableObjectTableItem in libRestKitThree20.a(RKMappableObjectTableItem.o)
"_OBJC_CLASS_$_TTTableViewDataSource", referenced from:
_OBJC_CLASS_$_RKObjectTTTableViewDataSource in libRestKitThree20.a(RKObjectTTTableViewDataSource.o)
"_OBJC_METACLASS_$_TTModel", referenced from:
_OBJC_METACLASS_$_RKObjectLoaderTTModel in libRestKitThree20.a(RKObjectLoaderTTModel.o)
"_OBJC_METACLASS_$_TTTableLinkedItem", referenced from:
_OBJC_METACLASS_$_RKMappableObjectTableItem in libRestKitThree20.a(RKMappableObjectTableItem.o)
"_OBJC_METACLASS_$_TTTableViewDataSource", referenced from:
_OBJC_METACLASS_$_RKObjectTTTableViewDataSource in libRestKitThree20.a(RKObjectTTTableViewDataSource.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
kindly help how to rid it off
Make sure your project is using the Three20 library. Also make sure your build order makes sense - you may need to reference three20 in your workspace/project before RestKit is compiled or in the RestKit project if you have one.

Undefined symbols for architecture i386: "_PerformXMLXPathQuery"

I looked at all the others that had a similar title but none of those solutions worked for some reason... Hoping someone can help!
Undefined symbols for architecture i386:
"_PerformXMLXPathQuery", referenced from:
-[WeatherForecast connectionDidFinishLoading:] in WeatherForecast.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"_PerformXMLXPathQuery", referenced from:
-[WeatherForecast connectionDidFinishLoading:] in WeatherForecast.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am new to iOS so any help would be greatly appreciated!!
Seems like you are compiling for the simulator (i386) with a library for the Device (ARM). Either compile for the device and run on it or get an i386 version of the library and run with it on the simulator.
For those who need it, the issue was that my XPathQuery.m file was not in the Complied Sources list. It was as simple as that!
Just posting this for future reference! Hope it helps someone!

Undefined symbols for architecture i386

I have downloaded the SDL Library, i created an Xcode project, but when i try to build the xcode return this error:
Undefined symbols for architecture i386:
"_SDL_CreateMutex", referenced from:
-[testViewController packet_queue_init:] in testViewController.o
"_SDL_CreateCond", referenced from:
-[testViewController packet_queue_init:] in testViewController.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
how can i fix it??
thanks
Keeps happening to me randomly too. Assuming you're still using your project, just try to toggle the options for the following settings :
Build active architecture only (DEBUG is usually YES, RELEASE is usually NO).
SDK : Latest
Build target: iPhone OS 4.0 (Or whatever your min supported OS is)