问题
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?
回答1:
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 --helpto check if you have RubyGems. If not go HEREsudo gem install cocoapodsIT TAKES A WHILE, be patient, it will goNow, once that's done,
cdinto your directory where your.xcodeprojisCreate your Podfile:
nano PodfileNO extensionInclude 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+Xpod installOpen your
.xcworkspace
来源:https://stackoverflow.com/questions/35145550/installing-cocoapods-and-aws-mobile-ios-sdk