Last active
August 16, 2018 15:04
-
-
Save slabko/ce11d99bb59bcfdfd427 to your computer and use it in GitHub Desktop.
[Cocoapods] Add preprocessor macros for pod project
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, '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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I needed it for AMSlideMenu where AMSlideMenuWithoutStoryboards should be set, if you want use it without storyboard.