mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-05-07 12:45:19 +08:00
when attaching the debugger to the device, make sure to pass the appropriate arch to the debug server and lldb (which could be arm64)
This commit is contained in:
@@ -231,6 +231,17 @@ task :device => :archive do
|
||||
App.fail "Device ID `#{device_id}' not provisioned in profile `#{App.config.provisioning_profile}'"
|
||||
end
|
||||
env = "XCODE_DIR=\"#{App.config.xcode_dir}\""
|
||||
if ENV['debug']
|
||||
unless remote_arch = ENV['arch']
|
||||
ary = App.config.archs['iPhoneOS']
|
||||
remote_arch = ary.last
|
||||
if ary.size > 1
|
||||
$stderr.puts "*** Application is built for multiple architectures (#{ary.join(', ')}), the debugger will target #{remote_arch}. Pass the `arch' option in order to specify which one to use (ex. rake device debug=1 arch=arm64)."
|
||||
end
|
||||
end
|
||||
env << " RM_REMOTE_ARCH=\"#{remote_arch}\""
|
||||
end
|
||||
|
||||
deploy = File.join(App.config.bindir, 'ios/deploy')
|
||||
flags = Rake.application.options.trace ? '-d' : ''
|
||||
Signal.trap(:INT) { } if ENV['debug']
|
||||
|
||||
Reference in New Issue
Block a user