mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-19 18:24:16 +08:00
[libdwarf] introduce "app.embed_dsym" in order to enable/disable embedding dSYM into app
This commit is contained in:
@@ -488,7 +488,7 @@ EOS
|
||||
# TODO only in debug mode
|
||||
dest_path = File.join(app_resources_dir, File.basename(dsym_path))
|
||||
FileUtils.rm_rf(dest_path)
|
||||
copy_resource(dsym_path, dest_path)
|
||||
copy_resource(dsym_path, dest_path) if config.embed_dsym
|
||||
end
|
||||
|
||||
# Strip all symbols. Only in distribution mode.
|
||||
|
||||
@@ -506,7 +506,7 @@ EOS
|
||||
# TODO only in debug mode
|
||||
dest_path = File.join(app_resources_dir, File.basename(dsym_path))
|
||||
FileUtils.rm_rf(dest_path)
|
||||
copy_resource(dsym_path, dest_path)
|
||||
copy_resource(dsym_path, dest_path) if config.embed_dsym
|
||||
end
|
||||
|
||||
# Strip all symbols. Only in distribution mode.
|
||||
|
||||
@@ -31,7 +31,7 @@ module Motion; module Project;
|
||||
class XcodeConfig < Config
|
||||
variable :xcode_dir, :sdk_version, :deployment_target, :frameworks,
|
||||
:weak_frameworks, :embedded_frameworks, :external_frameworks, :framework_search_paths,
|
||||
:libs, :identifier, :codesign_certificate, :short_version, :entitlements, :delegate_class,
|
||||
:libs, :identifier, :codesign_certificate, :short_version, :entitlements, :delegate_class, :embed_dsym
|
||||
:version
|
||||
|
||||
def initialize(project_dir, build_mode)
|
||||
@@ -49,6 +49,7 @@ module Motion; module Project;
|
||||
@entitlements = {}
|
||||
@delegate_class = 'AppDelegate'
|
||||
@spec_mode = false
|
||||
@embed_dsym = true
|
||||
@vendor_projects = []
|
||||
@version = '1.0'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user