安装CocoaPods和AWS Mobile iOS SDK [英] Installing CocoaPods and AWS Mobile iOS SDK
问题描述
我遵循了以下说明: http://docs .aws.amazon.com/mobile/sdkforios/developerguide/install-ios-sdk.html
但我仍然缺少所有这些依赖项: http://screencast.com/t/o2oaYFctzg
But I still get all these missing dependencies: http://screencast.com/t/o2oaYFctzg
我该如何解决?
推荐答案
所以我对此也有一段时间的疑问.如果这是您的第一个依赖项管理器,将会有些困惑.
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
检查您是否有RubyGems.如果没有,请此处
gem --help
to check if you have RubyGems. If not go HERE
sudo gem install cocoapods
要花点时间,请耐心等待,
sudo gem install cocoapods
IT TAKES A WHILE, be patient, it will go
现在,完成操作后,cd
进入.xcodeproj
所在的目录
Now, once that's done, cd
into your directory where your .xcodeproj
is
创建您的 Podfile :nano Podfile
无扩展名
包括您的软件包pod 'AFNetworking', '~> 2.0'
例如
以及您所有的AWS软件包:
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'
-
从nano
CTRL+X
pod install
打开您的.xcworkspace
这篇关于安装CocoaPods和AWS Mobile iOS SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!