admin
2025-07-17 8ef5d9624826e63bcd538afc1486c4441872f8de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#source 'https://github.com/CocoaPods/Specs.git'
#source 'https://gitee.com/mirrors/CocoaPods-Specs.git'
#source 'https://github.com/volcengine/volcengine-specs.git'
#source 'http://repo.baichuan-ios.taobao.com/baichuanSDK/AliBCSpecs.git'
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/volcengine/volcengine-specs.git'
platform :ios, '12.0'
#platform :ios, '13.0'
install! 'cocoapods', :disable_input_output_paths => true
use_frameworks!
 
target 'BuWanVideo2.0' do
  
  pod 'AFNetworking', '~>3.0'
  pod 'YYWebImage'
  pod 'YYImage/WebP'
 
  pod 'YYModel'
  pod 'SDWebImage','5.10.0'
 
  pod 'ReactiveCocoa', :git => 'https://github.com/zhao0/ReactiveCocoa.git', :tag => '2.5.2'
 
  pod 'UMCCommon'
  pod 'SDAutoLayout'
  pod 'IQKeyboardManager'
  pod 'SVProgressHUD'
  # 腾讯广告
  pod 'GDTMobSDK', '4.15.10'
  # 百度广告
  pod 'BaiduMobAdSDK', '5.370'
  # 快手广告
  pod 'KSAdSDK', '3.3.71'
  
  # GroMore SDK
  pod 'Ads-CN','6.6.1.0', :subspecs => ['BUAdSDK','CSJMediation']
  pod 'TTSDKFramework', '1.45.2.5-standard', :subspecs => [ 'Player-SR' ]
  pod 'RangersAPM', '5.1.3', :subspecs => [ 'Crash', 'EventMonitor', 'CN' ]
  pod 'RangersAppLog', '6.16.9', :subspecs => [ 'Log', 'Host/CN' ]
  
  pod 'GMBaiduAdapter', '5.370.1'
  pod 'GMGdtAdapter', '4.15.10.0'
  pod 'GMKsAdapter', '3.3.71.0'
  
  # LCDSDK,版本号以赋能平台生成的Pod命令为准
#  pod 'Pangrowth', '5.0.0.0', :subspecs => [ 'media', 'djx-lite', 'nov' ]
  pod 'Pangrowth', '5.3.0.0', :subspecs => [ 'media' ]
  pod 'PangrowthX', '2.7.0.0', :subspecs => [ 'shortplay','ministory' ]
 
  
  
  
  pod 'Toast', '~> 4.0.0'
#  pod 'Ads-Global'
  # 微信登录
  pod 'WechatOpenSDK-XCFramework'
end
 
def find_and_replace(dir, findstr, replacestr)
  Dir[dir].each do |name|
    text = File.read(name)
    replace = text.gsub(findstr, replacestr)
    if text != replace
      puts "Fix: " + name
      File.open(name, "w") { |file| file.puts replace }
      STDOUT.flush
    end
  end
  Dir[dir + '*/'].each(&method(:find_and_replace))
end
 
post_install do |installer_representation|
  
  
  installer_representation.generated_projects.each do |project|
    project.targets.each do |target|
      if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
        target.build_configurations.each do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        end
      end
      target.build_configurations.each do |config|
        config.build_settings["ENABLE_MODULE_VERIFIER"] = "NO"
        config.build_settings["ENABLE_USER_SCRIPT_SANDBOXING"] = "NO"
        config.build_settings["CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER"] = "NO"
      end
    end
  end
  
  # 省略
  # Xcode14问题补丁,升级后可以移除:https://github.com/CocoaPods/CocoaPods/pull/11828
  find_and_replace("./Pods/Target Support Files/Pods-projectName/Pods-projectName-frameworks.sh", 'source="$(readlink "${source}")"', 'source="$(readlink -f "${source}")"')
end