Skip to content

Instantly share code, notes, and snippets.

@mgrebenets
Created March 10, 2018 10:55
Show Gist options
  • Save mgrebenets/07aff08e446119223d85db40f3410028 to your computer and use it in GitHub Desktop.
Save mgrebenets/07aff08e446119223d85db40f3410028 to your computer and use it in GitHub Desktop.
Async Swift Scripting - 2
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