How to resolve this Stripe Payment integration Error? - ios

"_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.

Related

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.

Apple Mach-O Linker Error with Parse OBJC classes

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

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.

(null): Linker command failed with exit code 1 (use -v to see invocation) when use admob

H, I use admob of google, I added all the framework, I did exactly what they wrote in the guidline. But after I build this error appeared . I went through some solution on stackoverflow but can not fix it please help me.
"_CGSizeFromGADAdSize", referenced from:
-[GADMasterViewController init] in GADMasterViewController.o
-[GADMasterViewController resetAdView:] in GADMasterViewController.o
"_OBJC_CLASS_$_GADBannerView", referenced from:
objc-class-ref in GADMasterViewController.o
"_OBJC_CLASS_$_GADInterstitial", referenced from:
objc-class-ref in GADMasterViewController.o
"_OBJC_CLASS_$_GADRequest", referenced from:
objc-class-ref in GADMasterViewController.o
"_kGADAdSizeSmartBannerLandscape", referenced from:
-[GADMasterViewController resetAdView:] in GADMasterViewController.o
"_kGADAdSizeSmartBannerPortrait", referenced from:
-[GADMasterViewController init] in GADMasterViewController.o
-[GADMasterViewController resetAdView:] in GADMasterViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You're trying to build your project for 64bit x86 architecture, hence the message: "ld: symbol(s) not found for architecture x86_64"
I'm not sure exactly how do you do this, since you want to build an iOS project, and even if you would built it for the simulator, the architecture would be i386, not x86_64. Something is wrong with your build settings. Could you provide us with some details on these settings?

Resources