install! 'cocoapods', 
  :disable_input_output_paths => true,
  :generate_multiple_pod_projects => true,
  :warn_for_multiple_pod_sources => false
  
platform :osx, '10.10'
inhibit_all_warnings!

# require 'bd_pod_extentions'
# bd_use_app('public')

# plugin 'cocoapods-bytedance-transform'
# plugin 'cocoapods-unit-test'
source 'https://cdn.cocoapods.org'
source 'https://github.com/volcengine/volcengine-specs.git'
# bd_use_app("thirdParty","public")

target "MacObjCExample" do
  pod 'RangersAppLog', '6.8.0-alpha.3-macOS',
  # :path => '../',
    :subspecs => [
#      'Host/SG',
#      'Host/VA',
      'Host/CN',
      'Core',
      'Log',
      'OSX'
    ],
    :inhibit_warnings => false
  
end

def update_deployment_config(config = nil)
  return if config.nil?
  config.build_settings['ENABLE_BITCODE'] = 'YES'
  if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 9.0
    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
  end
end

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    update_deployment_config(config)
  end
  
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      update_deployment_config(config)
    end
  end
  ## for generate_multiple_pod_projects = true
  installer.generated_projects.each do |project|
    project.build_configurations.each do |config|
      update_deployment_config(config)
    end
    
    project.targets.each do |target|
      target.build_configurations.each do |config|
        update_deployment_config(config)
      end
    end
  end

end

