Skip to content

Instantly share code, notes, and snippets.

@priore
Last active March 5, 2025 23:07
Show Gist options
  • Save priore/eed61030f2cdae1b38e5942d8ea34eba to your computer and use it in GitHub Desktop.
Save priore/eed61030f2cdae1b38e5942d8ea34eba to your computer and use it in GitHub Desktop.
Update pod settings to speed up build time on debug
#
# 1. Enable build duration setting in Xcode from terminal:
#
# defaults write com.apple.dt.Xcode ShowBuildOperationDuration YE
#
# 2. add a post-installation phase to the Podfile to change the Debug Information Format setting in all targets and Pods
#
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
#
# from https://engineering.zalando.com/posts/2015/06/speeding-up-xcode-builds.html
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment