Skip to content

Instantly share code, notes, and snippets.

@slabko
Last active August 16, 2018 15:04
Show Gist options
  • Save slabko/ce11d99bb59bcfdfd427 to your computer and use it in GitHub Desktop.
Save slabko/ce11d99bb59bcfdfd427 to your computer and use it in GitHub Desktop.
[Cocoapods] Add preprocessor macros for pod project
platform :ios, '6.0'
pod 'ALibrary'
post_install do |installer_representation|
installer_representation.project.targets.each do |target|
if target.name == 'Pods-ALibrary'
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'VERY_IMPORTANT_MACROS=1'
end
end
end
end
@slabko
Copy link
Author

slabko commented Nov 15, 2014

I needed it for AMSlideMenu where AMSlideMenuWithoutStoryboards should be set, if you want use it without storyboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment