I am integrating worldpay using cocoapods into my project but am getting these errors:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFHTTPRequestOperation", referenced from:
objc-class-ref in libWorldpay.a(Worldpay.o)
objc-class-ref in libWorldpay.a(ThreeDSController.o)
objc-class-ref in libWorldpay.a(APMController.o) "_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from:
objc-class-ref in libWorldpay.a(WorldpayUtils.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed
with exit code 1 (use -v to see invocation)
Would anyone help me solve this issue?
Thanks.
_AFHTTPRequestOperation and _AFHTTPRequestOperationManager are AFNetworking classes. I think you may also need to add the AFNetworking pod.
platform :ios, '7.0'
pod "AFNetworking", "~> 2.0"
Need to add to implement this effectively since worldpay is dependent on AFNetworking
https://github.com/Worldpay/worldpay-lib-ios
Related
when i try to build ios...
xcode shows an error as
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FIRComponent", referenced from:
objc-class-ref in FirebaseAuth(FIRAuth.o)
"_OBJC_CLASS_$_FIRComponentType", referenced from:
objc-class-ref in FirebaseAuth(FIRAuth.o)
"_OBJC_CLASS_$_FIRComponentContainer", referenced from:
objc-class-ref in FirebaseAuth(FIRAuth.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
this is an ionic project..for ios build through xcode
Looks like you are missing the Firebase core library. Make sure you have this in your Podfile:
pod 'Firebase/Core'
Follow the instructions here.
The FIRComponent symbol was introduced in the Firebase 5.5.0 release
with a definition in the FirebaseCore pod and reference in the
FirebaseAuth pod.
Make sure you have at least version 5.1.0 of the FirebaseCore pod
installed.
Can anybody help me with this, its driving me crazy. I looked at every post I could find with a similar issue, and none of it worked.
I installed AFNetworking 3.0 in my project with Cocoapods, it installed, I see the AFNetworking pod in my project.Set built Architure only :YES Whenever I try to build I get the following error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFHTTPSessionManager", referenced from:
objc-class-ref in EFServer.o
"_OBJC_CLASS_$_AFJSONRequestSerializer", referenced from:
objc-class-ref in EFServer.o
"_OBJC_CLASS_$_AFJSONResponseSerializer", referenced from:
objc-class-ref in EFServer.o
"_OBJC_CLASS_$_MBProgressHUD", referenced from:
objc-class-ref in EFServer.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 had the same problem after installing pods to my old project. In my case there where custom linker flags added to the Build Settings of the target, but the $(inherited) was removed so the pods flags were missing (not inherited) therefore no AFNetworking framework were linked.
I suggest to check out is there a $(inherited) row added to the Other Linker Flags section of Build Settings for the target.
Just delete the DerivedData folder and re-try.
rm -rf ~/Library/Developer/Xcode/DerivedData
add below lines to your podfile and reinstall it and add your project name to target.
target 'your project name' do
use_frameworks!
pod 'AFNetworking', '~> 3.0'
end
hope your problem will be solved.
I get this error after using cocoapods with AWS SDK IOS:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AWSInfo", referenced from:
objc-class-ref in libAWSCognitoIdentityProvider.a(AWSCognitoIdentityProviderService.o)
objc-class-ref in libAWSIoT.a(AWSIoTDataManager.o)
objc-class-ref in libAWSIoT.a(AWSIoTDataService.o)
objc-class-ref in libAWSIoT.a(AWSIoTManager.o)
objc-class-ref in libAWSIoT.a(AWSIoTService.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 solved my own problem.
When i created the project i selected to include unit tests for the project.
For whatever reason this conflicted with the cocoapod installation. When i created a new project without unit tests everything compiled correctly.
This could be a conflict between the two or I did not configure something properly either way it seems like units tests and cocoapods need some extra tinkering with.
I updated my cocoapods version to 1.0 and am now getting a slew of errors regarding architecture. This is what my errors look like:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_Reachability", referenced from:
objc-class-ref in ReachabilityManager.o
(maybe you meant: _OBJC_CLASS_$_ReachabilityManager)
"_OBJC_CLASS_$_PBJVision", referenced from:
objc-class-ref in NewSpinViewController.o
"_PBJVisionPhotoImageKey", referenced from:
-[NewSpinViewController vision:capturedPhoto:error:] in NewSpinViewController.o
"_kReachabilityChangedNotification", referenced from:
-[NoInternetViewController viewDidLoad] in NoInternetViewController.o
"_PBJVisionPhotoThumbnailKey", referenced from:
-[NewSpinViewController vision:capturedPhoto:error:] in NewSpinViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've spent hours trying to fix this by toggling settlings under build settings but nothing is working for me.
This is what I currently have for my Architectures
Anyone have any ideas?
Try this: delete derived data and compile again. Sometimes the pod libraries simply don't get compiled even you cleaned the project, this happened to me when I updated to cocoapods 1.0.1.
The problem
I'm pretty new when it comes to iOS development and XCode, so please comment and let me know if any details are missing from the question.
We have migrated an SDK from downloadable archive files to Cocoa Pods. One of our partners tried using our Pod, but the XCode linker gave the following error:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_TAGContainerOpener", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_TAGManager", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The Pod file in the project is:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
target 'Demo' do
pod 'GoogleAppIndexing'
pod 'GoogleMaps'
pod 'OurPod', :git => 'https://github.com/AcmeCorp/OurPod.git'
end
target 'DemoTests' do
end
Other settings
We are opening the xcworkspace file (not the xcode.proj file).
What have I tried
I have tried to search the error but found nothing relevant.
Any idea what should I be looking for?
Thanks in advance!
Met with the same problem while trying to add Google Tag Manager and GoogleAnalytics to my app
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_TAGContainerOpener", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_TAGManager", referenced from:
objc-class-ref in ViewController.o
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)
I think you have missed some library.
Try adding libGoogleAnalyticsServices.a to your project.
This had fixed my compilation error