provideplatform / provide-ios

Native iOS example application leveraging the provide-swift API client
0 stars 0 forks source link

Look into speeding up compile times #30

Open jawwad opened 7 years ago

jawwad commented 7 years ago

One way I've read is to use the 'dwarf' instead of 'dwarf with dsym' option. Maybe we can enable dwarf with dysm on the build server and just dwarf locally since the dsym will be needed for symbolizing crash reports.

Some sample code to try out in the Podfile

post_install do |installer|
  puts("Update debug pod settings to speed up build time")
  Dir.glob(File.join("Pods", "**", "Pods*{debug,Private}.xcconfig")).each do |file|
    File.open(file, 'a') { |f| f.puts "\nDEBUG_INFORMATION_FORMAT = dwarf" }
  end
end

or

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
    end
  end
end
jawwad commented 7 years ago

Disabled dsym generation in Debug: https://github.com/provideapp/provide-ios/commit/42cd2a85b4b040f433871e98f30f6434c5742fa5

Looks like cocoapods already works this way: image

kthomas commented 7 years ago

I have some some attempts at optimization of build time. We probably could still benefit from keeping this around a bit longer though.