【发布时间】:2017-06-14 19:58:41
【问题描述】:
我前段时间在 Xcode 7 中创建了一个项目。现在我必须对其进行一些更改。它是在Swift 2.3 中创建的,我在Alamofire 中使用它。现在我在Xcode 8.2.1 更新了Xcode,Swift Version 是3。
我现在遇到了很多错误,我不知道如何让它再次工作。
我找到了相同的可能解决方案,但不适用于我。
我在1.2.0 更新了我的Cocoa Pods。不够。
我更新了Alamofire 版本到最后。结果相同。
我试图转换为当前的Swift Version。还是不好。
我发现该代码放在Podfile 的末尾。
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
这是我的Podfile。也许有帮助...
# platform :ios, '9.0'
target 'LeTrans Swift' do
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :tag => '3.5.0'
pod 'KRProgressHUD'
pod 'SwiftyJSON'
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'GooglePlacePicker'
end
【问题讨论】:
标签: ios swift xcode cocoapods alamofire