iOS无法找到AWS pod的pod规范

时间:2015-05-11 18:12:59

标签: ios amazon-web-services cocoapods

我四处寻找答案,但找不到任何有用的东西。根据AWS,您只需将以下内容添加到您的pod文件中:

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'

当我这样做时,我得到“[!]无法找到AWSCore的规范”

我的完整pod文件如下。请注意,如果我排除AWS pod并且只有AFNetworking,那么没有问题,所以我相信cocoapods已正确安装。

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

1 个答案:

答案 0 :(得分:4)

安装CocoaPods时,您是否也运行了pod setup

$ sudo gem install cocoapods
$ pod setup

如果您已经完成此操作,则可以使用干净状态重新设置它:

$ pod repo remove master
$ pod setup