Skip to content

Instantly share code, notes, and snippets.

View biloshkurskyi-ss's full-sized avatar

Serhii Biloshkurskyi biloshkurskyi-ss

View GitHub Profile
@biloshkurskyi-ss
biloshkurskyi-ss / set_swift_version.post_install.ruby
Created September 18, 2018 14:46 — forked from DaveWoodCom/set_swift_version.post_install.ruby
`post_install` hook to set the Swift version of pods (add to the end of your project's podfile)
post_install do |installer|
print "Setting the default SWIFT_VERSION to 4.0\n"
installer.pods_project.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
installer.pods_project.targets.each do |target|
if ['SomeTarget-iOS', 'SomeTarget-watchOS'].include? "#{target}"
print "Setting #{target}'s SWIFT_VERSION to 3.0\n"
target.build_configurations.each do |config|

Videos