Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.