首页 > 代码库 > swift pod 第三方库异常的处理

swift pod 第三方库异常的处理

Xcode8—Swift开发使用Cocoapods引入第三方库异常处理方法

参考:  http://www.jianshu.com/p/23f13be525a0

 

//podfile文件如下

<style>p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; min-height: 21.0px } p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo } p.p3 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; color: #0435ff } p.p4 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; color: #c32275 } span.s1 { } span.s2 { color: #0435ff } span.s3 { color: #000000 } span.s4 { color: #c32275 }</style>

 

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

 

 

swift pod 第三方库异常的处理