Skip to content

Instantly share code, notes, and snippets.

@Amosel
Created July 24, 2016 01:35
Show Gist options
  • Save Amosel/a7fe56acc94aa70785181d64c130a1b6 to your computer and use it in GitHub Desktop.
Save Amosel/a7fe56acc94aa70785181d64c130a1b6 to your computer and use it in GitHub Desktop.
Disable Mixpanel's AB Testing.
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'Mixpanel'
target.build_configurations.each do |config|
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment