Podfile 1.87 KB
use_frameworks!

platform :ios, '10.0'
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
source 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git'
#source 'http://bj.gitlab.cnlive.com/DSIOSTeam/DSSpecRepos.git'
target 'CNLiveVideoClassifyKit_Example' do
  pod 'CNLiveVideoClassifyKit', :path => '../'
  pod 'CNLiveEnvironment'
  pod 'CNLiveRequestBastKit'
  pod 'CNLiveCWebViewModule'
  pod 'FWDebug', :configurations => ['Debug']
#  #依赖三方私有库,如果里面有.a的时候加上这个
  pre_install do |installer| Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
    ###########################################  #删除WebViewJavascriptBridge中的WebViewJavascriptBridge.h和WebViewJavascriptBridge.m文件
      
        dir_web = File.join(installer.sandbox.pod_dir('WebViewJavascriptBridge'), 'WebViewJavascriptBridge')
        Dir.foreach(dir_web) {|x|
          real_path = File.join(dir_web, x)
          if (!File.directory?(real_path) && File.exists?(real_path))
            if(x == 'WebViewJavascriptBridge.h' || x == 'WebViewJavascriptBridge.m')
              File.delete(real_path)
            end
          end
        }
        #删除WebViewJavascriptBridge中的WebViewJavascriptBridge.h和WebViewJavascriptBridge.m文件
    #################################################
  end

  post_install do |installer_representation|
    installer_representation.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
         #share使用pod库时,pod中包含[UIApplication sharedApplication]的代码,需要下面的配置
         config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
           config.build_settings['ENABLE_BITCODE'] = false
      end
    end
  end

  target 'CNLiveVideoClassifyKit_Tests' do
    inherit! :search_paths

    
  end
end