Podfile 5.05 KB
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
#source 'https://github.com/CocoaPods/Specs.git'
#source 'https://cdn.cocoapods.org'

source 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git'
source 'http://bj.gitlab.cnlive.com/DSIOSTeam/DSSpecRepos.git'
source 'https://github.com/volcengine/volcengine-specs.git'

use_frameworks!

target 'metaCode' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for metaCode
  #网络请求基础库
  pod 'AFNetworking'
  #基础请求组件库
  pod 'CNLiveRequestBastKit'
  #键盘管理库
  pod 'IQKeyboardManagerSwift'
  #布局文件
  pod 'SnapKit'
  #刷新组件
  pod 'MJRefresh'
  #加载框
  pod 'MBProgressHUD'
  #空白占位
  pod 'EmptyDataSet-Swift'
  #模型转换工具
  pod 'HandyJSON'
  #图片视频选择器
  pod 'HXPHPicker'
  #七牛
  pod 'Qiniu'
  #支付组件
#  pod 'CNLivePayCostModule'
  pod 'CNLivePayCostModule','0.1.8'
#  pod 'AlipaySDK-iOS', '~> 15.8.30'
  #加载GIF
  pod 'SwiftGifOrigin', '~> 1.7.0'
  #数据库存储
  #pod 'WCDB.swift'
  #占位按钮
  pod 'APButton'
  #分类滚动切换视图
  pod 'JXSegmentedView', :git => 'https://gitee.com/mirrors/JXSegmentedView.git'
  pod 'JXPagingView/Paging'
  #轮播图
  pod 'FSPagerView', '0.8.3'
  #pod 'SDCycleScrollView', '~> 1.82'
  pod 'BKCycleScrollView'
  
  #播放器
  pod 'ZFPlayer', :git => 'https://gitee.com/mirrors/ZFPlayer.git'
  pod 'ZFPlayer/ControlView', :git => 'https://gitee.com/mirrors/ZFPlayer.git'
  pod 'ZFPlayer/AVPlayer', :git => 'https://gitee.com/mirrors/ZFPlayer.git'
  pod 'ZFPlayer/ijkplayer', :git => 'https://gitee.com/mirrors/ZFPlayer.git'
  #分享
  pod 'CNLiveShareToolKit'
  #网家家输入组件
  pod 'CNLiveCustomUI/CNLiveContentToolTextView'
  #业务工具库
  pod 'CNLiveBusinessTools'
  
  #图片浏览器
  pod 'SKPhotoBrowser', :git => 'https://gitee.com/mirrors/SKPhotoBrowser.git'
  #图片视频混合浏览器
  pod 'JFHeroBrowser'
  #视频播放器
  pod 'PLPlayerKit'
  #UI框架
#  pod 'QMUIKit'
   pod 'YYWebImage', :git => 'https://gitee.com/mirrors/YYWebImage.git'
   
   #网页交互
   pod 'WebViewJavascriptBridge'
   
   #数据库
   pod 'FMDB'
   
   #火山APM监控
   pod 'RangersAPM', '3.9.2', :subspecs => [
       'Crash',
       'WatchDog',
       'OOM',
       'LAG',
       'UserException',
       'Monitors',
       'UITrackers',
       'Hybrid',
       'MemoryGraph',
       'NetworkPro',
       'EventMonitor',
       'SessionTracker',
       'APMLog',
       'CrashProtector',
       'CPUException',
       'MetricKit',
       'Disk',
       'GWPASan',
       'Coredump',
       'CloudCommand',
       'CN'  #必须引入
   ]
   
   #阿里云号码管理SDK封装
   pod 'CNLiveAliNumberAuthenticationSDK','1.0.0'
   
   #依赖三方私有库,如果里面有.a的时候加上这个
   pre_install do |installer| Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
   end
   
   #依赖三方私有库,如果里面有.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.exist?(real_path))# if (!File.directory?(real_path) && File.exists?(real_path)) exists?,这是在 Ruby 中检查文件是否存在的方法,但在 Ruby 3.x 版本中,该方法已被弃用并从 File 类中移除 ,替换为 File.exist?(path)(没有 's')。25年6月11日

                if(x == 'WebViewJavascriptBridge.h' || x == 'WebViewJavascriptBridge.m')
                  File.delete(real_path)
                end
              end
            }
            #删除WebViewJavascriptBridge中的WebViewJavascriptBridge.h和WebViewJavascriptBridge.m文件
        #################################################
   end
   


#  target 'metaCodeTests' do
#    inherit! :search_paths
#    # Pods for testing
#  end
#
#  target 'metaCodeUITests' do
#    # Pods for testing
#  end

end



post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      #解决第三方最低版本过低,Xcode14.3 异常了arc文件 ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
      #clang: error: linker command failed with exit code 1 (use -v to see invocation)
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
      
      #强制所有 Pod 生成 dSYM:
      config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf-with-dsym'
    end
  end
end