lib/gym/package_command_generator.rb in gym-0.4.3 vs lib/gym/package_command_generator.rb in gym-0.4.4
- old
+ new
@@ -1,5 +1,7 @@
+require 'shellwords'
+
module Gym
# Responsible for building the fully working xcodebuild command
#
# Because of a known bug in PackageApplication Perl script used by Xcode the packaging process is performed with
# a patched version of the script.
@@ -14,10 +16,10 @@
end
def options
options = []
- options << "'#{appfile_path}'"
+ options << Shellwords.escape(appfile_path)
options << "-o '#{ipa_path}'"
options << "exportFormat ipa"
if Gym.config[:provisioning_profile_path]
options << "--embed '#{Gym.config[:provisioning_profile_path]}'"