Created
September 12, 2016 10:49
-
-
Save ivanbruel/408e5b1fd11fcce83de6e7ffb3de24ea to your computer and use it in GitHub Desktop.
Build Time Analizer for Cocoapods
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