lib/cocoapods-meitu-bin/helpers/buildAll/builder.rb in cocoapods-meitu-bin-1.4.1 vs lib/cocoapods-meitu-bin/helpers/buildAll/builder.rb in cocoapods-meitu-bin-2.0.0
- old
+ new
@@ -350,26 +350,27 @@
fwks = @pod_target.file_accessors.map(&:vendored_frameworks).flatten.compact.uniq
return if fwks.empty?
fwks_dir = "#{result_product_dir}/fwks"
FileUtils.mkdir(fwks_dir) unless File.exist?(fwks_dir)
fwks.map do |fwk|
- new_fwk = get_XCFrameworkIntermediates_path(fwk)
- if new_fwk && File.exist?(new_fwk)
- `rsync -av #{new_fwk} #{fwks_dir}`
- else
- `rsync -av #{fwk} #{fwks_dir}`
- end
+ `rsync -av #{fwk} #{fwks_dir}`
+ # new_fwk = get_XCFrameworkIntermediates_path(fwk)
+ # if new_fwk && File.exist?(new_fwk)
+ # `rsync -av #{new_fwk} #{fwks_dir}`
+ # else
+ # `rsync -av #{fwk} #{fwks_dir}`
+ # end
end
end
- def get_XCFrameworkIntermediates_path(path)
- # 使用正则表达式匹配并提取 AdsFramework
- match = path.to_s.match(/\/([^\/]+)\.xcframework/)
- if match
- framework_path = "#{product_dir}/#{iphoneos}/XCFrameworkIntermediates/#{match[1]}/#{match[1]}.framework"
- return framework_path
- end
- return nil
- end
+ # def get_XCFrameworkIntermediates_path(path)
+ # # 使用正则表达式匹配并提取 AdsFramework
+ # match = path.to_s.match(/\/([^\/]+)\.xcframework/)
+ # if match
+ # framework_path = "#{product_dir}/#{iphoneos}/XCFrameworkIntermediates/#{match[1]}/#{match[1]}.framework"
+ # return framework_path
+ # end
+ # return nil
+ # end
# 拷贝 framework
def copy_framework
source_path = "#{product_dir}/#{iphoneos}/#{@pod_target}/#{@pod_target.framework_name}"
if File.exist?(source_path)