Answers for "#ifdef in podfile"

0

#ifdef in podfile

# Inject the target macro.
# http://stackoverflow.com/a/27138078/1677041
post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == "foo_target_name"
            target.build_configurations.each do |config|
                config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
                config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'ADHOC=1'
            end
            puts "\n\e[3m\e[32mInject a macro ADHOC to target!\e[0m\e[23m\n\n"
        end
    end
end
Posted by: Guest on August-17-2021

Code answers related to "#ifdef in podfile"

Browse Popular Code Answers by Language