[DEV] Speed up building of Cocoapods

pull/5271/head
Hwee-Boon Yar 2 years ago
parent 49d6ce64a4
commit 8b28203302
  1. 15
      Podfile
  2. 2
      Podfile.lock

@ -74,10 +74,13 @@ post_install do |installer|
end
if ['TrustKeystore'].include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Owholemodule'
target.build_configurations
.reject {|e| e.debug?}
.each do |config|
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Owholemodule'
end
end
end
if ['Result', 'SwiftyXMLParser', 'JSONRPCKit'].include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.2'
@ -87,5 +90,11 @@ post_install do |installer|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0';
end
target.build_configurations
.filter {|e| e.debug?}
.each do |config|
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'
end
end
end

@ -369,6 +369,6 @@ SPEC CHECKSUMS:
web3swift: 06118d4c4edc801444aaa995bbbddeda176b97ef
xcbeautify: b2c6b50c9cab6414296898e94cd153e4ea879662
PODFILE CHECKSUM: 1e631b96c01ba92ec16e5a70ab1469480bfa9585
PODFILE CHECKSUM: 231f495bf040366ab60f3fafb76dacce7202584d
COCOAPODS: 1.11.2

Loading…
Cancel
Save