Created
June 29, 2017 07:41
-
-
Save bumaociyuan/b9007ad0cd3615cc10ea91152dfffca8 to your computer and use it in GitHub Desktop.
单独配置podfile macro
This file contains 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
# Uncomment the next line to define a global platform for your project | |
platform :ios, '9.0' | |
target 'demo' do | |
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks | |
use_frameworks! | |
end | |
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
if target.name == "MQTTClient" | |
target.build_configurations.each do |config| | |
if config.name == 'Debug' | |
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = ["COCOAPODS=1"] | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment