-
-
Save rlaguilar/0fd86551d91ded8c104777ebff972446 to your computer and use it in GitHub Desktop.
A Podfile that demonstrates how to use Swift 3 dependencies in a Swift 4 project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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