安装CocoaPods和AWS Mobile iOS SDK [英] Installing CocoaPods and AWS Mobile iOS SDK

查看:102
本文介绍了安装CocoaPods和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:

  1. gem --help检查您是否有RubyGems.如果没有,请此处

  1. 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'

  1. 从nano CTRL+X

pod install

打开您的.xcworkspace

这篇关于安装CocoaPods和AWS Mobile iOS SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆