/gist:e5f3d62d611ce435775e Secret
Last active
August 29, 2015 14:06
-
-
Save Blackjacx/e5f3d62d611ce435775e to your computer and use it in GitHub Desktop.
Enable Logging for Magical Record 2.3.0 beta-3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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