.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.
Related
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.
ld: warning: in /Users/kunwarhanda/Documents/Augmented/WikitudeAPI/libWikitudeAPI.a, missing required architecture i386 in file
Undefined symbols:
"_OBJC_CLASS_$_WTPoi", referenced from:
objc-class-ref-to-WTPoi in AugmentedAppDelegate.o
objc-class-ref-to-WTPoi in CustomMenuButtonDelegateImpl1.o
"_OBJC_CLASS_$_WikitudeARCustomMenuButton", referenced from:
objc-class-ref-to-WikitudeARCustomMenuButton in AugmentedAppDelegate.o
"_OBJC_CLASS_$_WikitudeARView
Controller", referenced from:
objc-class-ref-to-WikitudeARViewController in AugmentedAppDelegate.o
objc-class-ref-to-WikitudeARViewController in CustomMenuButtonDelegateImpl1.o
objc-class-ref-to-WikitudeARViewController in CustomMenuButtonDelegateImpl3.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
**I have cross checked that libWikitudeAPI.a is imported still does'nt know about this error and by the way m new to iPhone
Please can some one help me in this Thanks in advance **
The problem is that the library is only for device not for simulator. Try debug your app and use NSZombieEnabled environment variable for finding actual crash reasons.
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).
"_OBJC_CLASS_$_AddViewController", referenced from:
objc-class-ref-to-AddViewController in ContactsController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
and the particular controllers are attached and compiling fine.
Thanks
Make sure that AddViewController.m is added to your compile sources.
Can anyone please tell me what is this error, I am trying to compile on xcode
"_OBJC_CLASS_$_CATransaction",
referenced from:
objc-class-ref-to-CATransaction in RefreshTableViewHeader.o
And this error
"_kCATransactionDisableActions",
referenced from:
_kCATransactionDisableActions$non_lazy_ptr
in RefreshTableViewHeader.o
(maybe you meant: _kCATransactionDisableActions$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Google was of no help.
Am I missing any framework...?
It is a linker error indicating that you're missing some symbols. Try to add QuartzCore framework to link with your project.