Skip to content

Instantly share code, notes, and snippets.

@bumaociyuan
Created June 29, 2017 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bumaociyuan/b9007ad0cd3615cc10ea91152dfffca8 to your computer and use it in GitHub Desktop.
Save bumaociyuan/b9007ad0cd3615cc10ea91152dfffca8 to your computer and use it in GitHub Desktop.
单独配置podfile macro
# 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