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
Related
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 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.
Currently I'm using Swift 3, and after I install a new Pod I received this error
Here's my Pod
I can't even clean the project, I tried Pod update but the error persists. What should I do to fix this problem?
Must Add line
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'Bolts', '~> 1.8'
pod 'Cosmos', '~> 12.0'
end
Now you can install the dependencies in your project:
$ pod install
I've looked around for an answer to this but could not find anything useful. According to AWS you just add the following to your pod file:
source 'https://github.com/CocoaPods/Specs.git'
pod 'AWSCore'
pod 'AWSAutoScaling'
pod 'AWSCloudWatch'
pod 'AWSDynamoDB'
pod 'AWSEC2'
pod 'AWSElasticLoadBalancing'
pod 'AWSKinesis'
pod 'AWSS3'
pod 'AWSSES'
pod 'AWSSimpleDB'
pod 'AWSSNS'
pod 'AWSSQS'
pod 'AWSCognito'
When I do this I get "[!] Unable to find a specification for AWSCore"
My full pod file is the following. Note that if I exclude the AWS pods and just have AFNetworking, there is no problem, so I believe cocoapods is installed correctly.
target :myApp do
source 'https://github.com/CocoaPods/Specs.git'
pod 'AWSCore'
pod 'AWSAutoScaling'
pod 'AWSCloudWatch'
pod 'AWSDynamoDB'
pod 'AWSEC2'
pod 'AWSElasticLoadBalancing'
pod 'AWSKinesis'
pod 'AWSS3'
pod 'AWSSES'
pod 'AWSSimpleDB'
pod 'AWSSNS'
pod 'AWSSQS'
pod 'AWSCognito'
pod "AFNetworking", "~> 2.0"
end
When installing CocoaPods, did you run pod setup as well?
$ sudo gem install cocoapods
$ pod setup
If you have already done this, you can set it up again with a clean state:
$ pod repo remove master
$ pod setup
I updated CocoaPods today (sudo gem install cocoapods). After performing pod install the project won't compile anymore. It seems that headers from the pod are not longer found by the project.
Did something change in the recent cocoa pods version(s)?
The following is my pod file:
source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
inhibit_all_warnings!
pod 'CocoaLumberjack'
pod 'RestKit', '~> 0.20.0'
pod 'RestKit/Testing'
pod 'NLTHTTPStubServer'
pod 'Appsee'
pod 'google-plus-ios-sdk', '1.7.0'
Fix is simple and the error tells what to do. Add this to the top of your Podfile:
source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
Here's the Github issue with more details - https://github.com/CocoaPods/CocoaPods/issues/2515
Update
Make sure you create the Podfile in the root of your Xcode project directory. Here's what your Podfile should look like -
source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
inhibit_all_warnings!
# Pods
pod 'RestKit', :head
pod 'RestKit/Testing', :head
pod 'CocoaLumberjack', :head
pod 'NLTHTTPStubServer', :head
pod 'Appsee', '~> 2.1'
pod 'google-plus-ios-sdk', '~> 1.7.0'
In your terminal -
Update RubyGems - sudo gem update
Update Cocoa Pods - sudo gem install cocoapods
In your project directory -
Remove pods - rm -rf Pods/
Install pods - pod install
I was in the same position as you, and finally decided to roll back the CocoaPods version I had installed (which solved my problem)
Luckily my Podfile.lock file was under version control, so I pulled up the file to see what the last version of Cocoapods I had used. The last line of my Podfile.lock was:
COCOAPODS: 0.33.1
So here is how I solved my issue
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 0.33.1
rm -rf Pods
pod install