Skip to content

Instantly share code, notes, and snippets.

@ivanbruel
Created August 30, 2016 14:50
Show Gist options
  • Save ivanbruel/ed490b1a4e70d15e788253ddb58e3011 to your computer and use it in GitHub Desktop.
Save ivanbruel/ed490b1a4e70d15e788253ddb58e3011 to your computer and use it in GitHub Desktop.
Adding Build Time Analyzer flags for Cocoapod dependencies
# 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