Skip to content

Instantly share code, notes, and snippets.

@ivanbruel
Created September 12, 2016 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanbruel/408e5b1fd11fcce83de6e7ffb3de24ea to your computer and use it in GitHub Desktop.
Save ivanbruel/408e5b1fd11fcce83de6e7ffb3de24ea to your computer and use it in GitHub Desktop.
Build Time Analizer for Cocoapods
# 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