Undefined symbols for architecture x86_64 calabash - ios

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

Related

How to resolve this Stripe Payment integration Error?

"_OBJC_CLASS_$_STPPaymentCardTextField", referenced from:
objc-class-ref in PaymentViewController.o
"_OBJC_CLASS_$_Stripe", referenced from:
objc-class-ref in StripeHandlerViewController.o
objc-class-ref in AppDelegate.o
objc-class-ref in PaymentViewController.o
(maybe you meant: _OBJC_CLASS_$_StripeHandlerViewController)
"_OBJC_CLASS_$_STPAPIClient", referenced from:
objc-class-ref in StripeHandlerViewController.o
objc-class-ref in PaymentViewController.o
"_StripeDomain", referenced from:
-[StripeHandlerViewController createBackendChargeWithToken:completion:] in StripeHandlerViewController.o
___71-[StripeHandlerViewController createBackendChargeWithToken:completion:]_block_invoke in StripeHandlerViewController.o
-[PaymentViewController save:] in PaymentViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I try to integrate Stripe payment in my old project, so i added some example file in myproject. it show this errors so i google it and add this file to Build phase--> Compile sources but it still show this error.
Please help me to find solution.
ld: symbol(s) not found for architecture x86_64
You are trying to build this for the simulator and the linker is telling you that the library is missing the binary for the x86_64 (simulator). I'm not familiar with that library but you are most likely missing the framework that's specifically for the simulator or that library doesn't have simulator support.

iOS _OBJC_CLASS errors after adding a library to project

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.

GoogleMaps for iOS Linker Error

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.

iOS SKMaps architecture error

I am currently getting an error when I want to build project on a 64bit System. (iPad, iPhone).
I am getting this error :
ld: warning: ignoring file /(project Path)/SKMaps.framework/SKMaps, missing required architecture x86_64 in file /(project Path)/SKMaps.framework/SKMaps (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SKAnnotation", referenced from:
objc-class-ref in MapViewController.o
"_OBJC_CLASS_$_SKMapView", referenced from:
objc-class-ref in MapViewController.o
"_OBJC_CLASS_$_SKMapsInitSettings", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_SKMapsService", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
On non 64-Bit Systems it works like a charm! But it shows error the other way around.
Need some guidance on this. Thanks.
You will need the SDK build for arm64. Send an email to dev#skobbler.com and you should receive the build.

Xcode get error when using Coapod

I'm using Cocoapod to get Global Lib. It works fine in the simulator, but it has some error when I build on my device:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in HomeViewController.o
"_OBJC_CLASS_$_SBJsonParser", referenced from:
objc-class-ref in IQRequest.o
"_AFNetworkingOperationFailingURLResponseErrorKey", referenced from:
___78-[IQRequest performQueueOperationWithRequest:withSuccessBlock:andFailedBlock:]_block_invoke39 in IQRequest.o
"_OBJC_CLASS_$_AFHTTPRequestOperation", referenced from:
objc-class-ref in IQRequest.o
"_OBJC_CLASS_$_AFHTTPClient", referenced from:
objc-class-ref in IQRequest.o
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in ChooseDesignerViewController.o
objc-class-ref in IQUser.o
objc-class-ref in IQAppDelegate.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What has happened to my project?
It seems like your library isn't compiled for armv7s. If it's distributed as binary you'll have to ask the maintainer to rebuild it with an armv7s slice. If it's distributed as source code you have to check the projects build settings. I think you should look for valid architectures or something like that.

Resources