lib/cocoapods-xlbuild/rome/build_framework.rb in cocoapods-xlbuild-1.0.1 vs lib/cocoapods-xlbuild/rome/build_framework.rb in cocoapods-xlbuild-1.1.0
- old
+ new
@@ -21,12 +21,11 @@
)
deployment_target = target.platform.deployment_target.to_s
target_label = target.label # name with platform if it's used in multiple platforms
- #linpeng edit
- Pod::UI.puts "[HY].Prebuilding #{target_label} -> #{target.version}"
+ Pod::UI.puts "[XL].Prebuilding #{target_label} -> #{target.version}"
other_options = []
# bitcode enabled
other_options += ['BITCODE_GENERATION_MODE=bitcode'] if bitcode_enabled
# make less arch to iphone simulator for faster build
@@ -93,14 +92,16 @@
lipo_log = `lipo -create -output #{tmp_lipoed_binary_path} #{device_dsym}/Contents/Resources/DWARF/#{module_name} #{simulator_dsym}/Contents/Resources/DWARF/#{module_name}`
puts lipo_log unless File.exist?(tmp_lipoed_binary_path)
FileUtils.mv tmp_lipoed_binary_path, "#{device_framework_path}.dSYM/Contents/Resources/DWARF/#{module_name}", :force => true
end
# move
+ # linpeng edit:xxxx.framework.DSYM文件挪到GenerateFramework的xxx目录下
FileUtils.mv device_dsym, output_path, :force => true
end
# output
output_path.mkpath unless output_path.exist?
+ #linpeng edit: 将build文件夹的xxxx.framework移动到GenerateFramework的xxxx目录下
FileUtils.mv device_framework_path, output_path, :force => true
# 如果是静态库则需要手动处理资源文件
if Pod::Podfile::DSL.static_binary
device_bundle_path = "#{build_dir}/#{CONFIGURATION}-#{device}/#{target_name}"
build_bundle_dir = Dir["#{device_bundle_path}/*"]