Skip to content

Instantly share code, notes, and snippets.

@DimaRU
Forked from JohnSundell/Podfile
Created February 3, 2018 14:21
Show Gist options
  • Save DimaRU/878cd91d3ce050e79742cce379ae2425 to your computer and use it in GitHub Desktop.
Save DimaRU/878cd91d3ce050e79742cce379ae2425 to your computer and use it in GitHub Desktop.
A Podfile that demonstrates how to use Swift 3 dependencies in a Swift 4 project
target 'MyTarget' do
use_frameworks!
# Post installation script that enables the Swift 4 compiler's
# legacy 3.2 mode for Swift 4-incompatible pods
post_install do |installer|
incompatiblePods = ['PodA', 'PodB']
installer.pods_project.targets.each do |target|
if incompatiblePods.include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
end
pod 'Unbox'
pod 'Wrap'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment