【发布时间】:2016-09-19 05:28:55
【问题描述】:
我有一个 swift 版本 2.3 的应用。
当我尝试在 xcode 8 中运行并在构建设置中设置“User Legacy Swift -> YES”时,它只会给我 cocoapods 的错误。
见下图:
我的 pod 文件:
platform :ios, '8.0'
use_frameworks!
target 'xxx' do
pod 'Alamofire', '~> 3.3'
pod 'PKHUD', '~> 3.1'
pod 'SCLAlertView', '~> 0.5'
pod 'SwiftyJSON', '~> 2.3'
pod 'ICSPullToRefresh', '~> 0.4'
pod 'ReachabilitySwift', '~> 2.3'
pod 'IQKeyboardManagerSwift', '~> 4.0'
end
target 'xxTests' do
end
target 'xxUITests' do
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '2.3'
end
end
end
【问题讨论】:
-
@Anbu.Karthik,我已经做了同样的事情,但仍然出现错误,如图所示
-
复制 xocde-8.1 stackoverflow.com/questions/38446097/…
标签: ios iphone swift cocoapods xcode8