Skip to content

Instantly share code, notes, and snippets.

@Blackjacx
Forked from carlj/gist:675056e511f6c13c0c4b
Last active August 29, 2015 14:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Blackjacx/e5f3d62d611ce435775e to your computer and use it in GitHub Desktop.
Save Blackjacx/e5f3d62d611ce435775e to your computer and use it in GitHub Desktop.
Enable Logging for Magical Record 2.3.0 beta-3
post_install do |installer|
installer.project.targets.each do |target|
target.build_configurations.each do |config|
# Enable the loggin for MagicalRecord
# 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_LOGGING_ENABLED=1"
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