I am really stuck at this step of Firebase Installation to my iOS app. I installed some other pods but it worked perfectly. But after Firebase installation it makes an error 'Linker command failed with exit code 1 (use -v to see invocation)'. I figure out this problem. This is because of pod 'GVRSDK'. When I delete this pod 'GVRSDK' then it works perfectly. The error mention in the given image.
My app pod content is given below:
pod ‘Firebase/Messaging’
pod 'SDWebImage', '~>3.8'
source 'https://github.com/CocoaPods/Specs.git'
pod 'Google/SignIn'
pod 'GVRSDK', '0.8.5'
pod 'RSKImageCropper'
pod 'AFNetworking', '~> 3.0'
pod 'Google/CloudMessaging'
Thanks in advance.
In you Pod file you should use proper comma according to your Pod, Firebase pod section should be like'Firebase/Messaging' use that instead of 'Google/CloudMessaging' because that pod is deprecated. Delete that line in your pod and re-install it. That will fix your problem.
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 have just started working on Swift 4.0 with my current Objective C project. Everything went fine until I wished to use pods for ALCameraViewController which is built in swift and my previous pods are in Objective C, so I can't enable "use_frameworks!".
Even if I enable it my project builds successfully but app crashes right away at launch with error message saying
dyld: Library not loaded: #rpath/Amplitude_iOS.framework/Amplitude_iOS
Referenced from: /var/containers/Bundle/Application/44F47AE7-3928-450C-A8F4-5C708C996E43/RydeDev.app/RydeDev
Reason: image not found
This Amplitude_iOS is one of my Objective C pods.
I referred to so many posts on SO and GitHub but nothing is works out for me.
I thought of a way to use Swift libraries by manual installation and without pods but I think it'll not a good approach considering I might use some other libraries as well for Swift.
My pods
use_frameworks!
target '<My App>' do
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'JSONModel', '~> 1.2'
pod 'RSKImageCropper'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Fabric'
pod 'Crashlytics'
pod 'Analytics', '~> 3.0'
pod 'LGSideMenuController', '~> 1.0.0'
pod 'CCBottomRefreshControl'
pod 'GoogleMaps'
pod 'Amplitude-iOS', '~> 3.11.1'
pod 'JDFTooltips'
pod 'Branch'
pod 'Stripe’
pod 'YYModel'
pod 'ALCameraViewController'
end
So please help me fix this issue.
Any help would be much appreciated.
Thanks
This is my podfile for my iphone app.
platform :ios, ‘9.0’
use_frameworks!
target ‘NearBy Places’ do
pod 'Alamofire', '~> 4.0'
pod 'SwiftyJSON'
pod 'Toast-Swift', '~> 2.0.0'
pod 'MBProgressHUD'
pod 'GoogleMaps'
pod 'GooglePlaces'
end
I accidentally deleted some files of framework. Now even when i run pod install command, it is still not able to get those files back and is showing me missing googlemapscore framework missing linker error.
Delete the pod, run pod update and then add your pod and call pod update again.
I had the same problem after deleting GoogleMapsCore by mistake. Here's what worked for me:
From my project podfile, commented out the pods related to google maps, in my case
rn_maps_path = '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => rn_maps_path
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
ran cd ios then pod install , which removed the pods i commented out
then uncommented the pods i have commented earlier in step 1
repeat step 3 to install the pods again
ran a clean build on xcode and it worked.
I followed these instructions: http://docs.aws.amazon.com/mobile/sdkforios/developerguide/install-ios-sdk.html
But I still get all these missing dependencies: http://screencast.com/t/o2oaYFctzg
How do I fix this?
So I had issues with this for a while too. A bit confusing if it is your first dependency manager.
So open up terminal and follow these steps:
gem --help to check if you have RubyGems. If not go HERE
sudo gem install cocoapods IT TAKES A WHILE, be patient, it will go
Now, once that's done, cd into your directory where your .xcodeproj is
Create your Podfile: nano Podfile NO extension
Include your packages pod 'AFNetworking', '~> 2.0' for instance
And all your AWS packages:
source 'https://github.com/CocoaPods/Specs.git'
pod 'AWSCore'
pod 'AWSAutoScaling'
pod 'AWSCloudWatch'
pod 'AWSDynamoDB'
pod 'AWSEC2'
pod 'AWSElasticLoadBalancing'
pod 'AWSKinesis'
pod 'AWSLambda'
pod 'AWSMachineLearning'
pod 'AWSMobileAnalytics'
pod 'AWSS3'
pod 'AWSSES'
pod 'AWSSimpleDB'
pod 'AWSSNS'
pod 'AWSSQS'
pod 'AWSCognito'
Exit and save from nano CTRL+X
pod install
Open your .xcworkspace
I am installing cocoapods by using terminal and getting below error only when working with Google Analytics and google sign (#pod 'Google/Analytics' pod 'Google/SignIn')
My Podfile:-
platform :ios, '7.0'
target 'ProgrammingCrew' do
pod 'AFNetworking', '~> 2.5.3'
pod 'TPKeyboardAvoiding'
pod 'TTTAttributedLabel'
pod 'MBProgressHUD'
pod 'TSMessages'
pod 'FBSDKLoginKit'
pod 'NewRelicAgent'
pod 'CocoaLumberjack'
pod 'Google/Analytics'
pod 'Google/SignIn'
pod 'RNBlurModalView', '~> 0.1.0'
end
Error:-
NOTE:-
When I remove Google sign in and Google analytics from pod file, it works well.
OS 10.10.5
XCode 7.2
This error is thrown when there is a network failure. It can be either at your end, or at the place where that particular source code is kept. I was facing the same problem and it worked after few hours. Had to make no changes for that at all.
It can also be the case that the link is no more working at all in which case we have to get a working link(Pod with some other version). If no such links exist, we might have to notify the developer/(s) about this.