Swift cocoapod安装框架(Alamofire)在xcode中出现语法错误

时间:2016-05-09 10:56:56

标签: xcode swift cocoapods alamofire

我在安装一些外部框架时遇到了一些问题。因此,我在一个空白项目中尝试,但错误是相同的,我不知道我在哪里做错了。error image

这有点不常见。看起来我确实安装了错误版本的框架,因为它在代码语法中出现了40多个错误。 此外,错误来自Alamofire,AmazonS3RequestManager等。 这是我的podfile,我只是将pod install放在目标文件目录

source 'https://github.com/CocoaPods/Specs.git'
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!

target 'test' do
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'AlamofireImage', '~> 2.0'
pod 'Firebase', '>= 2.4.3'
pod 'SwiftValidator', '3.0.1'
pod 'AmazonS3RequestManager', '~> 0.8'
pod 'MBProgressHUD', '~> 0.9.2'

end

1 个答案:

答案 0 :(得分:0)

截图中的代码适用于Swift 2.2,因此您必须将Xcode更新为最新版本Xcode 7.3。你的版本太旧了。