Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use xcrun for running altool #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions command/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 : "
Expand All @@ -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
Expand Down