CocoaPods and Swift 3

|

I've been having problems integrating Swift 3 Cocoapods into my Swift 3 projects. When I install any new Cocoapod in Xcode 8, I get a prompt to update the pod to Swift 3. When I do that, everything breaks.

Fortunately, I've found a workaround: Just put this snippet in your 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