I am getting following error while trying to use pdf.h and pdf.mm in my application.
ld: warning: ignoring file /Users/aditya/Desktop/PDFStudy/zdll.lib, file was built for archive which is not the architecture being linked (i386)
"_convertPDF", referenced from:
-[PDFStudyViewController readPDF] in PDFStudyViewController.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
This is because your library /Users/aditya/Desktop/PDFStudy/zdll.lib was compiled for other architectures, for example, arm6 or arm7 used in iPhones.
You are probably testing your app in simulator, which requires library to be compiled for architecture i386.
Related
I am using xcode 7.3 and using PubNub library. The build runs fine on simulator but fails while running on actual device.
Here is the error that I see :
ld: warning: ignoring file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/CocoaLumberjack.framework/CocoaLumberjack, missing required architecture armv7 in file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/CocoaLumberjack.framework/CocoaLumberjack (2 slices)
ld: warning: ignoring file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/PubNub.framework/PubNub, missing required architecture armv7 in file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/PubNub.framework/PubNub (2 slices)
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_PubNub", referenced from:
type metadata accessor for __ObjC.PubNub in AppDelegate.o
"_OBJC_CLASS_$_PNConfiguration", referenced from:
type metadata accessor for __ObjC.PNConfiguration in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have the $(inherited) flag in the OTHER LINKER FLAGS. I am not using cocoa pods for pubnub. It is framework drag and drop.
Now I am unable to run the app on actual device.
Any suggestions ?
I had same issue but when i use pod so i solved this issue. pod get automatic dependancy.
pod setup.
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.
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)
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).
.framework/MapKit, file was built for i386 which is not the architecture being linked (armv6)
Undefined symbols:
"_OBJC_CLASS_$_MKAnnotationView", referenced from:
objc-class-ref-to-MKAnnotationView in MapViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I am getting this error when building on my device even though I added the mapkit and corelocation frameworks. Does anyone know how i can solve this problem?
Add the framework MapKit to your project.