Last active
March 5, 2025 23:07
-
-
Save priore/eed61030f2cdae1b38e5942d8ea34eba to your computer and use it in GitHub Desktop.
Update pod settings to speed up build time on debug
This file contains hidden or 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
# | |
# 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