mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-01-12 22:51:55 +08:00
[libdwarf] remove embedded dSYM to ensure that copy dSYM into app
This commit is contained in:
@@ -486,7 +486,9 @@ EOS
|
||||
sh "/usr/bin/dsymutil \"#{main_exec}\" -o \"#{dsym_path}\""
|
||||
|
||||
# TODO only in debug mode
|
||||
copy_resource(dsym_path, app_resources_dir)
|
||||
dest_path = File.join(app_resources_dir, File.basename(dsym_path))
|
||||
FileUtils.rm_rf(dest_path)
|
||||
copy_resource(dsym_path, dest_path)
|
||||
end
|
||||
|
||||
# Strip all symbols. Only in distribution mode.
|
||||
|
||||
@@ -504,7 +504,9 @@ EOS
|
||||
sh "/usr/bin/dsymutil \"#{main_exec}\" -o \"#{dsym_path}\""
|
||||
|
||||
# TODO only in debug mode
|
||||
copy_resource(dsym_path, app_resources_dir)
|
||||
dest_path = File.join(app_resources_dir, File.basename(dsym_path))
|
||||
FileUtils.rm_rf(dest_path)
|
||||
copy_resource(dsym_path, dest_path)
|
||||
end
|
||||
|
||||
# Strip all symbols. Only in distribution mode.
|
||||
|
||||
Reference in New Issue
Block a user