platform :ios, '10.0' use_frameworks! inhibit_all_warnings! target 'Delta' do pod 'FileMD5Hash', '~> 2.0.0' pod 'SQLite.swift', '~> 0.11.0' pod 'SDWebImage', '~> 3.8' pod 'Fabric', '~> 1.6.0' pod 'Crashlytics', '~> 3.8.0' pod 'SMCalloutView' end post_install do |installer| Dir.glob('Pods/SQLite.swift/Sources/SQLite/**/*.swift').each { |path| begin text = File.read(path) text = text.gsub(/import CSQLite/, 'import SQLite3') File.open(path, 'w') { |file| file.puts text } rescue Exception puts "Unable to patch #{path}: #{$!}" end } end