Xcode8—Swift开发使用Cocoapods引入第三方库异常处理方法
参考: http://www.jianshu.com/p/23f13be525a0
//podfile文件如下
platform :ios, '10.0'
use_frameworks!
target 'testSWift' do
pod 'Alamofire', '~> 4.4.0'
end
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