Created
March 10, 2018 10:55
-
-
Save mgrebenets/07aff08e446119223d85db40f3410028 to your computer and use it in GitHub Desktop.
Async Swift Scripting - 2
This file contains hidden or 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
platform :osx, "10.10" | |
use_frameworks! | |
plugin "cocoapods-rome" | |
target :dummy do | |
pod "Alamofire", "~> 4.6.0" | |
end | |
post_install do |installer| | |
swift_version = `cat .swift-version`.strip | |
installer.pods_project.targets.each do |target| | |
target.build_configurations.each do |config| | |
puts "Setting SWIFT_VERSION to #{swift_version} for #{target} in #{config} configuration" | |
config.build_settings["SWIFT_VERSION"] = swift_version | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment