2017-02-17 73 views
0

我通過使用podfile安裝SCLAlertView在podfile中獲取錯誤

我在SCLAlertView.swift文件中收到300個錯誤。我正在使用xcdoe 7

如何解決問題。

這裏是我的podfile

平臺:IOS, '8.0'

目標SCLAlertView2做 莢SCLAlertView

目標IceCreamShopTests

末 它產生podfile SCLAlertView.swift但得到300錯誤。

(可能是最新版本的Xcode的7不起作用)

回答

1

首先

如果您在科檢查,你可以找到SCLAlertView https://github.com/vikmeup/SCLAlertView-Swift/tree/swift-2.3

enter image description here的SWIFT 2.3支持的版本

您可以直接使用,而不是安裝cocoapods。

如果檢查SCLAlertView.podspec你可以找到的CocoaPods的版本,那麼你可以通過吊艙由

pod 'SCLAlertView', '~> 0.6' 

如果你想支持安裝的Xcode 7.3和SWIFT 2.3其他明智的,如果您使用swift 3+然後使用

pod 'SCLAlertView', '~> 0.7' 

希望信息解決您的問題。