Skip to content

Instantly share code, notes, and snippets.

@0del
Last active December 16, 2020 07:01
Show Gist options
  • Save 0del/322ae0fe8f38ee02a222c527a1f37fdf to your computer and use it in GitHub Desktop.
Save 0del/322ae0fe8f38ee02a222c527a1f37fdf to your computer and use it in GitHub Desktop.
Cocoa rome: Build podfile
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