podspec文件添加预编译宏定义

s.source_files = 'SmartWebKit/Classes/**/*'
  # 配置图片
   s.resource_bundles = {
     'SmartWebKit' => ['SmartWebKit/Assets/*']
   }
   
   # 配置宏定义 podfile 文件顶部定义 ENV["SMART_AS_ENABLE"] = "true"
   if ENV['SMART_AS_ENABLE']
       s.xcconfig = {
         "GCC_PREPROCESSOR_DEFINITIONS" => 'SMART_AS_ENABLE=1'
       }
   else
   
   end

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'SmartRouter'
  
  s.subspec 'Common' do |ss|
    ss.public_header_files = 'SmartWebKit/Common/**/*.h'
    ss.source_files = 'SmartWebKit/Common/**/*'
    ss.dependency 'ZWTUIKit'
    ss.dependency 'ZWTBase'
    ss.dependency 'SmartRouter'
  end

你可能感兴趣的:(podspec文件添加预编译宏定义)