Skip to content

Instantly share code, notes, and snippets.

@toto
Created May 14, 2013 10:09
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 toto/5574964 to your computer and use it in GitHub Desktop.
Save toto/5574964 to your computer and use it in GitHub Desktop.
Override preprocessor flags in Pods
post_install do |installer|
installer.project.targets.each do |target|
target.build_configurations.each do |config|
s = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] || %w{ $(inherited) }
s << 'OHATTRIBUTEDLABEL_WARN_ABOUT_KNOWN_ISSUES=0'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = s
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment