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
Related
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.
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.
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
I recently moved my data model objects to their own framework by adding clicking the + button on the project screen. I moved all the files and changed their target memberships to AppCore as opposed to App. The project is purely in Swift.
I updated my podfile to the below:
platform :ios, '10.0'
inhibit_all_warnings!
target 'App' do
use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Crash'
pod 'Firebase/Storage'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
target 'AppCore' do
inherit! :search_paths
end
end
Whenever I try to build I get 4 errors:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FIRDataSnapshot", referenced from:
objc-class-ref in SSWorkout.o
"_OBJC_CLASS_$_FIRDatabase", referenced from:
objc-class-ref in SSReference.o
objc-class-ref in SSReferrable.o
"_OBJC_CLASS_$_FIRAuth", referenced from:
objc-class-ref in SSUser.o
"_OBJC_CLASS_$_FIRDatabaseReference", referenced from:
objc-class-ref in SSOperation.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have deintegrated and reinstalled pods, cleaned the project, cleaned build folder, deleted derived data etc, I can't get it to compile.
You can reproduce this in the demo project, run pod install and try to build.
https://github.com/Raesu/Demo-Proj
The libraries in Firebase's pod are currently built as static libraries. It is not possible to link static libraries into a dynamic library framework -
DemoCore in your example.
Try enabling bitcode in Xcode build settings and do a clean build, this helps me to resolve the issue
Xcode > Build settings> Enable bitcode
I just upgraded Facebook iOS SDK to v.4.0.1 and I got these errors:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBSDKLoginManager", referenced from:
objc-class-ref in Controller1.o
objc-class-ref in AppDelegate.o
objc-class-ref in Controller2.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 already tried to change linkers: with -all_load I get the same error, while with -force_load it becomes "ld: file not found: -fobjc-arc". Any solutions?
I ran into the same problem. If you're adding Facebook Login to your app (which I presume you are) you also need to drag the FBSDKLoginKit.framework file into your Xcode project in addition to the FBSDKCoreKit.framework file.
The current instructions on Facebook's SDK Getting Started page forget to mention this. In version < 4 of the SDK, there was just one file to drag in to your project.
if you are trying to add it using cocoapods just add versions and it will work
change the pod file to the following:
pod 'FBSDKCoreKit', '~> 4.17.0'
pod 'FBSDKLoginKit', '~> 4.17.0'
pod 'FBSDKShareKit', '~> 4.17.0'
It really worked for Xcode 12.5.
Just added versions:
pod 'FBSDKCoreKit', '~> 11.2.1'
pod 'FBSDKLoginKit', '~> 11.2.1'
pod 'FBSDKShareKit', '~> 11.2.1'
With this option, errors appear and the project is not being built:
pod 'FBSDKCoreKit',
pod 'FBSDKLoginKit',
pod 'FBSDKShareKit',