Skip to content

Instantly share code, notes, and snippets.

@carlj
Last active August 29, 2015 14:06
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save carlj/675056e511f6c13c0c4b to your computer and use it in GitHub Desktop.
post_install do |installer|
installer.project.targets.each do |target|
target.build_configurations.each do |config|
# Disable the loggin for MagicalRecord
# This should be removed with the MagicalRecord Version 2.3.0
# https://github.com/magicalpanda/MagicalRecord/wiki/Logging
if target.name.include? "MagicalRecord"
preprocessorMacros = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS']
if preprocessorMacros.nil?
preprocessorMacros = ["COCOAPODS=1"];
end
preprocessorMacros << "MR_ENABLE_ACTIVE_RECORD_LOGGING=0"
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = preprocessorMacros
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment