I am trying to build a project that was developed around sept 2015. Getting the following error when run on device,
ld: library not found for -lPods
clang: error: linker command failed with exit code 1
I have Podfile.lock which has the version of the libs was being used back then. But I am using latest Cocoapods (v 1.21.1). Assuming this could the problem, I installed Cocoapods (v 0.39.0) that was the version back then. But having following error,
[!] Unable to load a specification for plugin `/Library/Ruby/Gems/2.0.0/gems/cocoapods-deintegrate-1.0.1`
Updating local specs repositories
[!] The `master` repo requires CocoaPods 1.0.0 - (currently using 0.39.0)
Update CocoaPods, or checkout the appropriate tag in the repo.
So I installed CocoaPods (v 1.0.0) but getting the same error,
ld: library not found for -lPods
clang: error: linker command failed with exit code 1
Any help is appreciated. Thanks!
Update
Here is the podfile content,
platform :ios, '7.0'
# source 'git#bitbucket.org:****dev/****-ios-spec-pod.git'
source 'https://github.com/CocoaPods/Specs.git'
#source 'https://bitbucket.org/****dev/****-ios-spec-pod.git'
# to test Pod :path => '~/Documents/...'
xcodeproj '****/****.xcodeproj'
# ignore all warnings from all pods
inhibit_all_warnings!
target "****" do
pod 'SVProgressHUD'
pod 'AFNetworkActivityLogger'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'APAvatarImageView'
pod '****-iOS-SDK-API', :path => '~/Documents/****_dev/****-ios-sdk-api-pod'
pod 'PSAlertView'
pod 'UITextField+Shake'
pod 'HexColors', '~> 2.2.1'
pod 'TSMessages'
pod 'TPKeyboardAvoiding'
pod 'DateTools'
pod 'SDWebImage'
pod 'PureLayout'
pod 'SZTextView'
pod 'ALAssetsLibrary-CustomPhotoAlbum', '~> 1.3'
pod 'UIActionSheet-Blocks', '~> 1.0'
pod 'DTPickerPresenter', '~> 0.2.0'
pod 'CCMPopup'
pod 'FranklySDK'
pod 'Instabug'
pod 'MZTimerLabel'
pod 'Google/Analytics'
end
Here, **** = My project name
Related
After the last pod update, project refuses to build with the following error
Undefined symbols for architecture x86_64:
"_kAPMSafelistedEventsOptionKey", referenced from:
+[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_ca9cdf99cfbae2f51d040b73dd242e94.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
my current podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
# Uncomment this line if you're using Swift
use_frameworks!
project 'PROJECT'
target 'PROJECT' do
pod 'Firebase/Core'
pod 'Firebase/Analytics'
pod 'Firebase/Messaging'
pod 'MWPhotoBrowser', '~> 1.4'
pod 'AKNumericFormatter', '~> 0.0'
pod 'GoogleMaps', '~> 1.10'
pod 'GoogleAnalytics', '~> 3.13'
pod 'Fabric'
pod 'Crashlytics'
pod 'LMGeocoder', '~> 1.0'
pod 'AFNetworking', '~> 3.0'
pod 'JSONModel'
end
I've tried all the usual approaches to these xcode anomalies (removing derived data, restarting, updating pods, reinstalling pods, using older versions and plenty of other SO suggested fixes) and none of it helped. What could be the cause for this?
I have an iOS project which uses Firebase and Google Toolbox for Mac, which are added via Pods. My Podfile is as follows:
target 'MyApp' do
pod 'GoogleToolboxForMac', '~> 2.1'
pod 'GTMSessionFetcher', '~> 1.1'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Messaging'
end
When I build the project in Xcode I get this error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GTMLogger", referenced from:
objc-class-ref in FirebaseMessaging(GIPReachability_ae5504e4a6a28a1d8997c6f38e8bff8b.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can anyone advise? Judging from other similar questions I may need import a framework in Linked Frameworks and Libraries. I've added UserNotifications.framework for Firebase Messaging, but not sure what else I'd need...?
Looks like you need to add another Cocoapod to your Podfile:
target 'MyApp' do
pod 'GoogleToolboxForMac', '~> 2.1'
pod 'GTMSessionFetcher', '~> 1.1' # version 1.1 & newer up to - but not including - 2.0
pod 'gtm-logger', '>= 0.0.5' # version 0.0.5 or newer
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Messaging'
end
and then run pod update
Hello here is my Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '8.4'
# Uncomment this line if you're using Swift
# use_frameworks!
target 'APP' do
pod 'Parse'
pod 'ParseUI'
pod 'Stripe'
pod 'JVFloatLabeledTextField'
pod 'Fabric'
pod 'RKDropdownAlert'
pod 'LGAlertView'
pod 'Crashlytics'
pod 'CHTCollectionViewWaterfallLayout'
pod 'TwitterKit'
pod 'CardIO'
pod 'Reachability'
pod 'DZNPhotoPickerController/Editor'
pod 'FBSDKCoreKit'
pod 'MGInstagram'
pod 'FBSDKShareKit'
pod 'TOCropViewController'
end
target 'APPTests' do
end
I'm receiving the error
ld: library not found for -lBolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've tried clean and build. no luck. I'm also using the xcworkspace
and I've also deintegrated pods many times and did pod install again. still no luck.
I've been trying to resolve this issue for 3 hours and I tried everything that's on the web but nothing seems to work, I'm just trying to add the (login in with Facebook) button on an app connected to parse.
I even started a new project from scratch to see if the same issue would appear and it did.
the error: (clang: error: linker command failed with exit code 1 (use -v to see invocation))
It appeared after doing 'pod install' in both apps, this is what I have in my Podfile:
platform :ios, '8.1'
xcodeproj 'carpoolup'
target :carpoolup, :exclusive => true do
pod 'Parse'
pod 'ParseUI'
pod 'ParseFacebookUtilsV4'
pod 'ParseTwitterUtils'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
end
please help, what does this error mean?
Try adding use_frameworks! after the platform line to force cocoapods to use frameworks.
Example from cocoapods.org:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
pod 'SwiftyJSON', '~> 2.3'
end
I just upgraded Cocoapods and ran a pod install. after doing a hard clean and build I'm getting the following error:
ld: library not found for -lPods-HHRouter clang: error:
linker command failed with exit code 1 (use -v to see invocation)
I tried removing every reference to HHRouter and pulling the pod. It moved on to give me an error about another pod.
Here is what my podfile looks like:
platform :ios, '8.0'
# ignore all warnings from all pods
inhibit_all_warnings!
pod 'JDStatusBarNotification'
pod 'HHRouter', '~> 0.1'
pod 'ViewDeck', '2.2.11'
pod 'IQKeyboardManager'
pod 'MagicalRecord'
pod 'RSKImageCropper', '1.0.0'
pod 'UICollectionViewLeftAlignedLayout'
pod 'FLAnimatedImage', '~> 1.0'
pod 'CRToast', '~> 0.0.7'
pod 'SDWebImage', '~>3.7'
Am I missing anything?
I deleted all the settings behind Other Linker Flags, except $(inherited), and it went well.