簡體   English   中英

Swift cocoapod 安裝框架 (Alamofire) 在 xcode 中出現語法錯誤

[英]Swift cocoapod install framework (Alamofire) occur Syntax error in xcode

我在安裝一些外部框架時遇到了一些問題。 因此,我在一個空白項目中嘗試它,但錯誤是相同的,我不確定我做錯了什么。 錯誤圖像

這有點不常見。 似乎我確實安裝了錯誤版本的框架,因為它在代碼語法中出現了 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

屏幕截圖中的代碼適用於 Swift 2.2,因此您必須將 Xcode 更新到最新版本 Xcode 7.3。 你的版本太舊了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM