Skip to content

Instantly share code, notes, and snippets.

@vvit
Created January 30, 2015 10:25
Show Gist options
  • Save vvit/0d456cdef3734723684c to your computer and use it in GitHub Desktop.
Save vvit/0d456cdef3734723684c to your computer and use it in GitHub Desktop.
Podfile: Add Preprocessor Macro
post_install do |installer_representation|
installer_representation.project.targets.each do |target|
if target.name == 'Pods-Mixpanel'
target.build_configurations.each do |config|
if config.name == 'Debug'
puts " Pods-Mixpanel #{config.name} before: #{config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'].inspect}"
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'DISABLE_MIXPANEL_AB_DESIGNER=1'
puts " Pods-Mixpanel #{config.name} after: #{config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'].inspect}"
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment