Failed to install pod: Undefined symbols for architecture x86_64 - ios

According to AdMob documentation, in order to integrate with facebook audience network I need to install this pod:
pod 'GoogleMobileAdsMediationFacebook'
When I try to install it, I received an error:
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GADUnifiedNativeAdView", referenced from:
objc-class-ref in FacebookAdapter(GADFBNativeAd.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed
with exit code 1 (use -v to see invocation)
Unfortunately I didn't find a solution for this issue.
Thanks.

I had the same problem. It worked after I deleted an old version of FBAudienceNetwork.framework's path in Framework Search Paths.

Related

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_FIRAnalytics"

I know that this question has been asked before but I tried every possible solution shared online but still got the issue. First tried with pods and then moved the FirebaseAnalytics into SPM. "Build Active Architecture Only" is set NO. In framework search paths, $(inherited) value and $(PROJECT_DIR)/Frameworks are available due to the frameworks I use in pods and SPM.
This is the error I get when I import FirebaseAnalytics and call Analytics:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FIRAnalytics", referenced from:
objc-class-ref in SessionManager.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Undefined symbols for architecture x86_64 when using Tesseract

I am using tesseract provided by google. After following this tutorial, i finally built finish my app. However, when i run it, i run into the problem of undefined symbols. This is the error
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_G8Tesseract", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How do i fix this issue? I tried searching online but none of the solutions worked for me. I tried reinstalling the pods and updating it. Then i faced this error
clang: error: no such file or directory: '/Users/admin/Desktop/tst/Pods/Target Support Files/Pods-tst/Pods-tst-dummy.m'
clang: error: no input files
When i tried redoing the project i get his error
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_G8Tesseract", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Apparently i had to add the TesseractOCR.framework separately even after using cocoa pods and disable Bitcode. This prevented the errors.
I think you should update pod version:
sudo gem install cocoapods
After this run:
pod update --verbose
Since Tesseract requires libstdc++.6.0.9.dylib (or libstdc++.6.0.9.tbd if libstdc++.6.0.9.dylib is unavailable in your current Xcode version) and CoreImage.framework you’ll need to link both of these libraries in.
In the General tab, scroll down to Linked Frameworks and Libraries.
There should be only one file here: TesseractOCR.framework, which you just added. Click the + button underneath the list. Find both libstdc++.dylib (or libstdc++.6.0.9.tbd) and CoreImage.framework and add them to your project.

I try to integration with zooz sdk in ios but it give some error, so please provide me a right solution

I try to integration with zooz sdk in ios but it give some error, so please provide me a right solution.
Ignoring File
/Users/xyz/Desktop/Zooz.com/ZooZSDK.embeddedframework/ZooZSDK.framework/ZooZSDK,
missing required architecture x86_64 in file
/Users/xyz/Desktop/Zooz.com/ZooZSDK.embeddedframework/ZooZSDK.framework/ZooZSDK
(3 slices) Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ZooZ", referenced from:
objc-class-ref in DemoZooZSDKViewController.o "_OBJC_CLASS_$_ZooZInvoiceItem", referenced from:
objc-class-ref in DemoZooZSDKViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with
exit code 1 (use -v to see invocation)
Experienced the same issue when following the installation instruction on their Github. Finally, I've downloaded the source code and built using Carthage for all architectures. This allowed me to run on simulator and physical device.

Undefined symbols for architecture x86_64 iOS

I have used cocoapods to install the upnpx library which successfully builds. But as soon as I went to build after using one of the classes In my project I am faced with this error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_UPnPManager", referenced from:
objc-class-ref in RendererView.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
SOLVED: For me, setting "Build active architectures only" to YES in build settings of the project target resolves this issue

ParseFacebookUtil: Apple Mach-O Linker, undefined symbol for architecture x86_64 PFDateFormatter

Error occurs after adding the ParseFacebookUtil
ERROR MESSAGE
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PFDateFormatter", referenced from:
objc-class-ref in ParseFacebookUtils(PFFacebookAuthenticationProvider.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FRAMEWORKS
I am using XCode 6.2
Thanks
edit:
I've added the frameworks social, and accounts. Same error still occurs.
I ended up fixing this issue by deleting the Parse and Bolts framework, and re adding it back into the project.
Edit:
The best solution to this issue is by using cocoapods. It handles the dependencies better than manually dragging in the framework files.

Resources