Undefined symbols for architecture arm64: "_FIRAuthStateDidChangeInternalNotificationAppKey", referenced from - ios

I am trying to update to latest frameworks in our app, but getting this error
Undefined symbols for architecture arm64:
"_FIRAuthStateDidChangeInternalNotificationAppKey", referenced from:
-[FAuthStateListenerWrapper authStateDidChangeNotification:] in FirebaseDatabase(FAuthTokenProvider_6272866f5c75e14e01c4ca08384ffa05.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
this is how my pod file looks
platform :ios, “9.0”
source 'https://github.com/CocoaPods/Specs.git'
target "foo" do
pod 'FBSDKShareKit'
pod 'AFNetworking'
pod 'Ono'
pod 'AFOnoResponseSerializer'
pod 'SVProgressHUD'
pod 'CTFeedback'
pod 'SIAlertView'
pod 'GPUImage'#, '~> 0.1.4'
pod 'UICKeyChainStore'
pod 'ASValueTrackingSlider'
pod 'Google-Mobile-Ads-SDK'#, '~> 7.47.0'
pod 'Google/Analytics'
pod 'SSZipArchive'
pod 'GoogleSignIn'
pod 'Fabric'
pod 'Crashlytics'
pod 'Firebase'#, '~> 4.8.2'
pod 'Firebase/Auth’
pod 'Firebase/Messaging'
pod 'Firebase/Invites'
pod 'Firebase/Storage'
end
I just ran pod update and the error started to show up.
added -ObjC,-licucore in other linker flags, alao disabled bitcode.

There's not enough information here to completely tell what is going on, but here are two red flags:
The missing symbol is from FirebaseDatabase, but FirebaseDatabase is not listed in the Podfile.
Firebase/Invites is in the Podfile, but Invites is no longer part of Firebase and will force Firebase 5 to be installed instead of the current Firebase 6.
You can learn more about why certain dependencies are chosen by examining the Podfile.lock.

Related

Getting symbol not found for x86_64 in XCode 12 - only Simulator

Getting below error with Xcode 12 while building for Simulator only. Building for real iphone works fine.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AWSTask", referenced from:
objc-class-ref in AWSCognitoUserPoolsSignInProvider.o
"_OBJC_CLASS_$_AWSDDLog", referenced from:
objc-class-ref in AWSUserPoolSignUpViewController.o
objc-class-ref in AWSUserPoolsUIOperations.o
"_OBJC_CLASS_$_AWSServiceConfiguration", referenced from:
objc-class-ref in AWSCognitoUserPoolsSignInProvider.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Below is my podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '12.2'
target 'chat' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
#inhibit_all_warnings!
# Pods for chat
pod 'AWSCore', '~> 2.9.10'
pod 'AWSAppSync', '~> 2.10.4'
pod 'AWSMobileClient', '~> 2.9.10'
pod 'AWSAuthUI', '~> 2.9.10'
pod 'AWSUserPoolsSignIn', '~> 2.9.10'
pod 'AWSS3'
pod 'SwiftKeychainWrapper'
pod 'MBProgressHUD'
pod 'Montserrat'
pod 'SDWebImage', '~> 5.0'
pod 'DKImagePickerController'
#, '~> 4.1.4'
pod 'SwipeCellKit'
pod 'GoogleMaps'
pod 'GooglePlaces'
end
Any help please?
I ran into this same issue on a project after upgrading to Xcode 12. What solved it was running pod deintegrate, then pod install.
In our case, we had a project and integrated react native into it. About two weeks later (yesterday) I started running into this situation. So in order to solve it...kinda. What I did is follow this guide troubleshooting guide on react native's website and installed cocoapods-fix-react-native. It is very important to add plugin 'cocoapods-fix-react-native' to your PodFile as per the instructions.
After that I ran pod deintegrate followed by pod install.
So now when I build in Xcode, everything words but if I clean the build folder I have to do a pod deintegrate followed by pod install again.
Sometimes when building, Xcode hangs, just stop and build again.

ld: symbol(s) not found for architecture arm64 TwiterKit

For some reason twitterkit is in my project. I did not add it but I guess its part of another pod I have added. The issue im having is that it is giving me 43 errors.
It begins:
Undefined symbols for architecture arm64:
"_TWTRCoreOAuthSigningOAuthEchoHeaders", referenced from:
-[TWTROAuthSigning OAuthEchoHeadersForRequestMethod:URLString:parameters:error:] in TwitterKit(TWTROAuthSigning.o)
"_OBJC_CLASS_$_TWTRScribeService", referenced from:
objc-class-ref in TwitterKit(Twitter.o)
"_TWTRTwitterAuthenticatePath", referenced from:
-[TWTRWebAuthenticationViewController initWithAuthenticationToken:authConfig:APIServiceConfig:forceLogin:] in TwitterKit(TWTRWebAuthenticationViewController.o)
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I fix this?
My pods:
pod 'Firebase'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'FirebaseUI'
pod 'SDWebImage'
pod 'Mapbox-iOS-SDK', '~> 4.9'
pod 'Firebase/Analytics'
pod 'Firebase/Messaging'
pod 'Nuke', '~> 7.0'
Before adding Nuke, there was no issue.
Update:
pod 'SDWebImage' Seems to be the pod causing the issue: after remoiving it the errors were gone
What should I do?
Update 2:
After reinstalling SDWebImage the errors are still gone. I do not know what caused the errors.
Looks like the problems with Cocoapods itself and not the specific pod. It happens.
Close Xcode
Execute pod install in terminal
Clean project via Build -> Clean menu item
Build project again
If problem persist update cocoapods and repeat previous process

Getting errors: framework not found FirebaseCore

I keep getting the following error
ld: framework not found FirebaseCore
clang: error: linker command failed with exit code 1 (use -v to see invocation)
here is the pod file
platform :ios, '11.4'
target 'Myproject' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
#use_frameworks!
use_modular_headers!
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'Firebase/Crash'
pod 'FirebaseStorageCache'
end
I have been struggling with this issue for days now. Request your help.
close xcode
pod reintegrate
pod install
open xcode
cmd+k
built

Error with Card.io using Xcode 8.2 and Swift 2.3

I'm trying to run my project on my device (iPhone 7 Plus: I have already copied my firmware DiskImage to this Xcode folder) with Card.io installed using cocoaPods on Xcode (8.2) with Swift 2.3.
But the compilator shows me this error:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_CardIOPaymentViewController", referenced from:
type metadata accessor for __ObjC.CardIOPaymentViewController in CheckoutViewController.o
"_OBJC_CLASS_$_CardIOUtilities", referenced from:
type metadata accessor for __ObjC.CardIOUtilities in CheckoutViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My Podfile contains:
pod 'PureLayout'
pod 'Fabric', '~> 1.6.8'
pod 'Crashlytics'
pod 'AFNetworking'
pod 'RealmSwift', '~> 0.98.6'
pod 'MBProgressHUD'
pod 'SDWebImage'
pod 'HCSStarRatingView'
pod 'DateTools'
pod 'SWTableViewCell'
pod 'Stripe'
pod 'CardIO'
pod 'SAMTextView'
pod 'IQKeyboardManagerSwift', '4.0.5'
I just typed pod install and launched the .xcworkspace it created.
I tried running this on Simulators but I can't get this to work. Can anyone help me?
I also tried the solution from this post:
CocoaPods error with Card.io.
But $(inherited) already exists in my Other Linker Flags section.
I am unable to figure out why it isn't working on my system. Any help will be appreciated.
Try to use this version
pod 'CardIO', :git => 'https://github.com/card-io/card.io-iOS-SDK.git', :tag => '5.4.1'*
Add the following in a header file
#import <CardIO.h>
not forget adding "CardIO" in Other Linker Flags in Build Settings

"framework not found AFNetworking for architecture arm64" for my Test Target

This is what I see when trying to run tests under test target in my iOS App:
ld: framework not found AFNetworking for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is how my podfile looks like:
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "8.2"
def pods
pod 'AFNetworking'
pod 'Fabric'
pod 'Crashlytics'
pod 'MagicalRecord'
pod 'SDWebImage'
pod 'SVProgressHUD'
end
target 'MySoberRoomMate' do
pods
end
inhibit_all_warnings!
I am new on IOS development and did not have the required reputation to add comment so that I am posting answer.
I did a little work with pod file and i think the pods for the test target is not added in pod file so that the compiler showing the error.
do some thing like this in the pod file for the test target
target 'TestTarget' do
pods
end
add your test target name in place of 'TestTarget'
Hope it works.

Resources