When i did install a Google Maps framework from CocoaPods
platform :ios, "8.0"
use_frameworks!
target 'BeNaved' do
pod 'TNImageSliderViewController', '~> 0.1'
pod 'SCLAlertView', '~> 0.4'
pod 'HanekeSwift'
pod 'GoogleMaps'
end
But when im running the app it appears an error.
ld: framework not found GoogleMaps
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Very need your help, thank you so much
You're writing the syntax of the podfile wrong. It is:
platform :ios, '8.0'
You were writing it as "8.0" (notice the single quotes which I've changed).
Related
I have added Firebase to my podfile and pod installed. Get the error above.
I then delete PodFile and Podfile.lock and try again. Same error.
Did again but first did pod repo update. And again with pod update then pod install. Same error
Added all Firebase to my Linker Library and same Error.
platform :ios, '10.0'
target 'myApp' do
pod 'RestKit', '~> 0.27.3'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'SDWebImage', '~> 5.0'
end
All answers on Stackoverflow say open .workspace instead or project. I am doing this and same error.
Is there a chance something was edited when someone opened the project file instead of the workspace file?
Not sure where to go from here.
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
tl;dr; how to use old (what shouldn't use use_frameworks!) and new pods together in podfile?
I had working podfile:
platform :ios, '8.0'
use_frameworks!
target 'myApp' do
pod 'Alamofire', '1.3.1'
pod 'SwiftyJSON', '~> 2.2.1'
end
Then I added OneSignal pod according to documentation link
So my pod file changed to:
platform :ios, '8.0'
use_frameworks!
target 'myApp' do
pod 'Alamofire', '1.3.1'
pod 'SwiftyJSON', '~> 2.2.1'
pod 'OneSignal'
end
I updated pods and run build - got error:
ld: framework not found OneSignal
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I checked OneSignal pod and it looks differently compared to others:
Thats probably because is old style objective-c framework.
I can add this framework manually to my project but I wonder how to make it work properly with cocoapods?
This issue relates to my problem I think https://github.com/CocoaPods/CocoaPods/issues/3338
Update
I'm currently using Xcode 6.4
What version of Xcode are you using?
If update to the latest release versions of both Alamofire and SwiftyJSON and build with Xcode 7 it should fix your build errors.
platform :ios, '8.0'
use_frameworks!
target 'myApp' do
pod 'Alamofire', '2.0.2'
pod 'SwiftyJSON', '~> 2.3.0'
pod 'OneSignal'
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.
My Podfile is as follows:
platform :ios, '8.0'
use_frameworks!
target 'podtest' do
pod 'SwiftyJSON', '~> 2.1'
end
And I definitely am opening up the Xcworkspace file, not the xcodeproj file. It throws a Mach-O linker error in even the simplest project I could possibly make, with the -F flag.