Podfile
1.45 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
target 'CNLiveVideoClassifyKit_Tests' do
inherit! :search_paths
end
end