通过CocoaPods安装Alamofire是错误的

时间:2017-01-01 06:02:33

标签: cocoapods alamofire

我最近刚通过CocoaPods安装了Alamofire,好吧,出了点问题。我得到了531个错误,我知道库中没有531个错误,所以发生了什么?我的Podfile如下:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target 'Instant Discount' do
    pod 'Alamofire', '~> 4.0'
end

以下是我收到的错误示例:

/Users/user/Dropbox/Instant Discount/Pods/Alamofire/Source/AFError.swift:265:78: Definition conflicts with previous value
/Users/user/Dropbox/Instant Discount/Pods/Alamofire/Source/AFError.swift:265:38: 'case' labels with multiple patterns cannot declare variables
/Users/user/Dropbox/Instant Discount/Pods/Alamofire/Source/AFError.swift:141:11: Use of undeclared type 'Error'
/Users/user/Dropbox/Instant Discount/Pods/Alamofire/Source/AFError.swift:75:38: Use of undeclared type 'URL'
/Users/user/Dropbox/Instant Discount/Pods/Alamofire/Source/AFError.swift:123:57: 'Encoding' is not a member type of 'String'
/Users/user/Dropbox/Instant Discount/Pods/Alamofire/Source/AFError.swift:349:20: Use of undeclared type 'LocalizedError'
/Users/user/Dropbox/Instant Discount/Pods/Alamofire/Source/AFError.swift:35:13: Type 'AFError' does not conform to protocol 'RawRepresentable'
/Users/user/Dropbox/Instant Discount/Pods/Alamofire/Source/AFError.swift:265:15: Enum case 'jsonEncodingFailed' not found in type 'AFError.ParameterEncodingFailureReason'
/Users/user/Dropbox/Instant Discount/Pods/Alamofire/Source/AFError.swift:276:15: Enum case 'bodyPartURLInvalid' not found in type 'AFError.MultipartEncodingFailureReason'

其中一些错误发生了10次或更多次。

0 个答案:

没有答案