[英]Installing CocoaPods and AWS Mobile iOS SDK
I followed these instructions: http://docs.aws.amazon.com/mobile/sdkforios/developerguide/install-ios-sdk.html 我遵循了以下说明: 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 但是我仍然得到所有这些缺少的依赖项: 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. gem --help
检查您是否有RubyGems。 If not go HERE 如果不去这里
sudo gem install cocoapods
IT TAKES A WHILE, be patient, it will go sudo gem install cocoapods
它需要一点时间,请耐心等待
Now, once that's done, cd
into your directory where your .xcodeproj
is 现在,一旦完成,将cd
插入.xcodeproj
所在的目录
Create your Podfile : nano Podfile
NO extension 创建您的Podfile : nano Podfile
NO扩展名
Include your packages pod 'AFNetworking', '~> 2.0'
for instance 例如,包括您的程序包pod 'AFNetworking', '~> 2.0'
And all your AWS packages: 以及您所有的AWS软件包:
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
从nano CTRL+X
退出并保存
pod install
Open your .xcworkspace
打开您的.xcworkspace
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.