From dd1c09572019bc47054d6fed39a44ee436554fdc Mon Sep 17 00:00:00 2001 From: Watson Date: Mon, 23 Feb 2015 10:48:03 +0900 Subject: [PATCH] [libdwarf] embed dSYM into extension app --- lib/motion/project/template/ios-extension-builder.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/motion/project/template/ios-extension-builder.rb b/lib/motion/project/template/ios-extension-builder.rb index b1053e2f..3bb7da89 100644 --- a/lib/motion/project/template/ios-extension-builder.rb +++ b/lib/motion/project/template/ios-extension-builder.rb @@ -502,6 +502,10 @@ EOS if !File.exist?(dsym_path) or File.mtime(main_exec) > File.mtime(dsym_path) App.info "Create", relative_path(dsym_path) sh "/usr/bin/dsymutil \"#{main_exec}\" -o \"#{dsym_path}\"" + + # TODO only in debug mode + dest_path = File.join(app_resources_dir, File.basename(dsym_path)) + copy_resource(dsym_path, dest_path) end # Strip all symbols. Only in distribution mode.