From d0a61862c2630dc579a678f85cefa000700bebce Mon Sep 17 00:00:00 2001 From: Petrik Date: Fri, 1 Nov 2019 12:37:21 +0100 Subject: [PATCH] Use xcrun for running altool With Xcode 11 the `altool` command has been replace with `xcrun altool`. --- command/utils.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/command/utils.rb b/command/utils.rb index 233364d..5641135 100644 --- a/command/utils.rb +++ b/command/utils.rb @@ -25,15 +25,15 @@ # POSSIBILITY OF SUCH DAMAGE. module Utils - ALTOOL = "/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool" + XCRUN = "/usr/bin/xcrun" def altool(arg) if verbose? puts "----------------------------------------" puts " COMMAND : " - puts "\"#{ALTOOL}\" #{arg}" + puts "\"#{XCRUN}\" altool #{arg}" end - message = `\"#{ALTOOL}\" #{arg} 2>&1` + message = `\"#{XCRUN}\" altool #{arg} 2>&1` if verbose? puts "----------------------------------------" puts " RETURN : " @@ -48,12 +48,12 @@ def altool(arg) CONFIG_KEY = %w( build_dir - deployment_target + deployment_target ) def config unless File.exist?('Rakefile') - help! "Run on root directoy of RubyMotion project." + help! "Run on root directory of RubyMotion project." end unless @config