我正在尝试将 alamofire 添加到我的项目中,但遇到了问题。
一旦我将文件添加到我的项目中,我就无法编译,我得到的错误是:
Alamofire.swift:106:26: 'Method' cannot be constructed because it has no accessible initializers
Alamofire.swift:156:130: 'CFStringBuiltInEncodings' does not have a member named 'rawValue'
Alamofire.swift:245:61: Bound value in a conditional binding must be of Optional type
Alamofire.swift:1290:90: Operand of postfix '?' should have optional type; type is 'NSString'
Alamofire.swift:1453:82: Operand of postfix '!' should have optional type; type is 'NSURL'