소스 검색

添加fftools 多导入的头文件

jsonwang 3 년 전
부모
커밋
5485bd8e2a
1개의 변경된 파일16개의 추가작업 그리고 1개의 파일을 삭제
  1. 16 1
      Podfile

+ 16 - 1
Podfile

@@ -48,7 +48,7 @@ target 'Introduce' do
      pod 'BFMediaKit',            :git => 'https://git.yishihui.com/iOS/BFMediaKit.git',:branch => 'dev'
      pod 'BFRecordScreenKit',     :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git',:branch => 'dev'
      pod 'BFAnalyzeKit',          :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git'
-     pod "BFFFmpeglib",           :git => 'https://git.yishihui.com/iOS/BFFFmpeglib.git'
+     pod "BFFFmpeglib",           :git => 'https://git.yishihui.com/iOS/BFFFmpeglib.git' ,:branch => 'dev'
      pod "BFUploadKit",           :git => 'https://git.yishihui.com/iOS/BFUploadKit.git'
    
    when 2  # hzq
@@ -98,6 +98,9 @@ target 'Introduce' do
     remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImageOptions.swift")
     remove_swift_ui_realm("./Pods/RealmSwift/RealmSwift/SwiftUI.swift")
     remove_retaincyle("./Pods/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/FBClassStrongLayout.mm")
+    
+    remove_fftools("./Pods/Target Support Files/BFMediaKit/BFMediaKit-umbrella.h")
+    
 
     installer.pods_project.targets.each do |target|
       target.build_configurations.each do |config|
@@ -130,6 +133,18 @@ target 'Introduce' do
     system("rm -rf " + code_file)
     
     
+    aFile = File.new(code_file, 'w+')
+    aFile.syswrite(code_text)
+    aFile.close()
+  end
+  # add by ak remove_fftools
+  def remove_fftools (code_file)
+    code_text = File.read(code_file)
+    code_text.gsub!(/#import "cmdutils.h"/,'')
+    code_text.gsub!(/#import "config.h"/,'')
+    code_text.gsub!(/#import "ffmpeg.h"/,'')
+    system("rm -rf " + code_file)
+  
     aFile = File.new(code_file, 'w+')
     aFile.syswrite(code_text)
     aFile.close()