Skip to content

Instantly share code, notes, and snippets.

@azu
Created August 27, 2013 06:32
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 azu/6350276 to your computer and use it in GitHub Desktop.
Save azu/6350276 to your computer and use it in GitHub Desktop.
CocoaPods経由で入れたMagicalRecordのログを非表示にするPodfileの書き方
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