Created
August 27, 2013 06:32
-
-
Save azu/6350276 to your computer and use it in GitHub Desktop.
CocoaPods経由で入れたMagicalRecordのログを非表示にするPodfileの書き方
This file contains hidden or 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
platform :ios, '5.0' | |
pod 'MagicalRecord' | |
post_install do |installer| | |
installer.project.targets.each do |target| | |
target.build_configurations.each do |config| | |
s = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] | |
if s==nil then s = [ '$(inherited)' ] end | |
s.push('MR_ENABLE_ACTIVE_RECORD_LOGGING=0'); | |
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = s | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment