I am working on translation App for that i use marketplace azure and its client and so on ,in that app only i am using ocr tesseract for text scanning then apply translation as translate in required in language,
i am getting an bellow error
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_AFHTTPRequestOperation", referenced from:
objc-class-ref in FGTranslateRequest.o
"_OBJC_CLASS_$_AFJSONResponseSerializer", referenced from:
objc-class-ref in FGTranslateRequest.o
"_OBJC_CLASS_$_AFXMLParserResponseSerializer", referenced from:
objc-class-ref in FGTranslateRequest.o
"_OBJC_CLASS_$_TMCache", referenced from:
objc-class-ref in FGTranslator.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
guide me ...
This type of errors normally occurs if your class' .m file is not listed under the "Compile Sources". Normally it's done by xcode but if there is any target related problem it fails to do it.
Steps:
TargetSettings -> Build Phases -> Compile Sources -> Add Your .m Class ->Build and Run
Related
I am trying to add PayU money sdk to my project. And after adding libiOSCustomBrowser.a file it gives errors:
ld: warning: directory not found for option '-L/Users/Jenaveve/myApp/Utilities/PayUSdk'
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_WKUserContentController", referenced from:
objc-class-ref in libiOSCustomBrowser.a(PUCBWebVC.o)
"_OBJC_CLASS_$_WKWebView", referenced from:
objc-class-ref in libiOSCustomBrowser.a(PUCBMagicRetry.o)
objc-class-ref in libiOSCustomBrowser.a(PUCBBaseConnection.o)
objc-class-ref in libiOSCustomBrowser.a(PUCBWebVC.o)
objc-class-ref in libiOSCustomBrowser.a(CBWKConnection.o)
"_OBJC_CLASS_$_WKWebViewConfiguration", referenced from:
objc-class-ref in libiOSCustomBrowser.a(PUCBWebVC.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
In build phases, in Link Binary with Libraries, this reference exists. What is wrong?
Maybe that library cannot support for x86_64 architecture.
Remove x86_64 architecture in
'Build Settings -> Valid architecture'
and rebuild.
While building the Application i am getting the following error i have searched a lot but i am unable to figure out what is the problem.
ld: warning: ignoring file /Users/username/GoogleMaps/GoogleMaps.framework/GoogleMaps, missing required architecture arm64 in file /Users/username/GoogleMaps/GoogleMaps.framework/GoogleMaps (2 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_GMSPolyline", referenced from:
objc-class-ref in GPSController.o
"_OBJC_CLASS_$_GMSCameraPosition", referenced from:
objc-class-ref in GPSController.o
"_OBJC_CLASS_$_GMSMutablePath", referenced from:
objc-class-ref in GPSController.o
"_OBJC_CLASS_$_GMSMarker", referenced from:
objc-class-ref in GPSController.o
"_OBJC_CLASS_$_GMSMapView", referenced from:
objc-class-ref in GPSController.o
"_OBJC_CLASS_$_GMSServices", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using GoolgeMaps SDK 1.4.3
PS:- I am relatively new to iOS programming so please avoid any blunders.
Adding value $(inherited) to BuildSettings->Linking->Other Linker Flags of your target
If you are developing an SDK/framework/POD you should do the same as above but under target name PROJECTNAME_tests.
Should fix the issue.
I had this problem too, and my solution was to add the frameworks to
Target -> Build Phases -> Link Binary With Libraries
ok I figured out the Problem
My Library was not built for 64-bit but i was trying to use that settings for my app, after i removed arm64 from architecture i successfully build the application.
Hi I have looked over similar questions and tried everything but I can seem to fix my code. Every time I try and archive it I get
Apple Mach-O Linker Errors for Parse User, Object, File, Query, Parse
and a linker command failed with exit code 1.
First I get an ld:
warning: ignoring file .., missing required architecture arm 64 in
file Parse.framework.Parse
Then the following errors:
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_PFUser",
referenced from:
objc-class-ref in SignupViewController.o
objc-class-ref in LoginViewController.o
objc-class-ref in InboxViewController.o
objc-class-ref in EditFriendsViewController.o
objc-class-ref in FriendsViewController.o
objc-class-ref in CameraViewController.o "_OBJC_CLASS_$_PFObject", referenced from:
objc-class-ref in CameraViewController.o "_OBJC_CLASS_$_PFFile", referenced from:
objc-class-ref in CameraViewController.o "_OBJC_CLASS_$_PFQuery", referenced from:
objc-class-ref in InboxViewController.o "_OBJC_CLASS_$_Parse", referenced from:
objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code
1 (use -v to see invocation)
Please can someone with experience of this issue help me as I've spent about 3 hours researching this already.
I know it's something to do with the Linked Frameworks but I don't get what?
Things I've tried:
Updating to the latest version of Parse Framework.
Including various other Frameworks that might have been missing.
Changed the Architectures in Build Setting to Standard Architectures (armv7, arm64)
Changed Build active Architecture only to No.
I just want this X-code project to build and archive with 64-bit support but there seems to be something fundamentally wrong with how I'm implementing Parse for 64-bit
I'm trying to set up calabash in my project.
I follow this tutorial: http://angelolloqui.com/blog/25-Acceptance-testing-with-Calabash-and-CocoaPods
But it's like now the new target doesn't find the rest of clases in pods and I get this error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from:
objc-class-ref in INCWorldWeatherOnline.o
"_OBJC_CLASS_$_AFJSONRequestSerializer", referenced from:
objc-class-ref in INCWorldWeatherOnline.o
"_OBJC_CLASS_$_MTLJSONAdapter", referenced from:
objc-class-ref in INCWorldWeatherOnline.o
"_OBJC_CLASS_$_MTLModel", referenced from:
_OBJC_CLASS_$_INCForecastCondition in INCForecastCondition.o
_OBJC_CLASS_$_INCCurrentCondition in INCCurrentCondition.o
"_OBJC_CLASS_$_MTLValueTransformer", referenced from:
objc-class-ref in INCForecastCondition.o
objc-class-ref in INCCurrentCondition.o
"_OBJC_METACLASS_$_MTLModel", referenced from:
_OBJC_METACLASS_$_INCForecastCondition in INCForecastCondition.o
_OBJC_METACLASS_$_INCCurrentCondition in INCCurrentCondition.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The original target is working without problems
Any idea?
I got this error when i made Build Active Architecture Only "NO"
and just uploaded the build on itunes store using product -> archive
i dont know why this happened but it work for me
In your target's Build Settings, try to change Build Active Architecture Only:
Debug->Yes
Following the instructions here: http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/
I added GData to my iOS 5 project. When it's time to archive the project I get the following error:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GDataServiceGoogleYouTube", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_GDataEntryYouTubeVideo", referenced from:
objc-class-ref in DataManager.o
objc-class-ref in ListController.o
objc-class-ref in ShareController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've checked the build settings for the GData.xcodeproj -> GDataTouchStaticLib, and this is what I set them to as seen by this pic: )
Any help is appreciated, to help get my project archived.
You haven't linked the libraries properly. Make sure you follow the directions carefully when it comes to adding the library paths. See Undefined symbols for architecture armv7 for more information.