Created
August 30, 2016 14:50
-
-
Save ivanbruel/ed490b1a4e70d15e788253ddb58e3011 to your computer and use it in GitHub Desktop.
Adding Build Time Analyzer flags for Cocoapod dependencies
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
# Adding Build Time Analyzer compatibility | |
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
target.build_configurations.each do |config| | |
other_swift_flags = config.build_settings['OTHER_SWIFT_FLAGS'] || ['$(inherited)'] | |
other_swift_flags << '-Xfrontend' | |
other_swift_flags << '-debug-time-function-bodies' | |
config.build_settings['OTHER_SWIFT_FLAGS'] = other_swift_flags | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment