Last active
December 16, 2020 07:01
-
-
Save 9bany/322ae0fe8f38ee02a222c527a1f37fdf to your computer and use it in GitHub Desktop.
Cocoa rome: Build podfile
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
platform :ios, '10.0' | |
use_frameworks! | |
plugin 'cocoapods-rome', | |
:pre_compile => Proc.new { |installer| | |
installer.pods_project.targets.each do |target| | |
target.build_configurations.each do |config| | |
config.build_settings['SWIFT_VERSION'] = '5.0' | |
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0' | |
config.build_settings["ONLY_ACTIVE_ARCH"] = "YES" | |
config.build_settings["VALID_ARCHS"] = "$(ARCHS_STANDARD) x86_64 i386" | |
end | |
end | |
installer.pods_project.save | |
}, | |
:post_compile => Proc.new { |installer| | |
puts "Rome finished building all the frameworks" | |
} | |
target '<your target>' do | |
# implelment pod install here | |
current_target_definition.swift_version = '5.0' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment