无法安装。 ipad in iOS real device with appium

时间:2017-04-11 13:30:49

标签: ios ruby cucumber appium appium-ios

我目前无法使用appium安装.ipa文件。

我可以使用ideviceinstaller

命令手动安装ideviceinstaller -i abc.ipa

但是在appium中,当我运行黄瓜测试时,当我尝试安装时出现以下错误,

 Encountered internal error running command: Error: Command failed: 
 ideviceinstaller -u udid -i 
 /var/folders/58/bqk7r15x7hv_l35vll1hg5_w0000gp/T/2017311-19876-
 1upzlv/Payload/abc.app
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file

at ChildProcess.exithandler (child_process.js:202:12)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at Pipe._onclose (net.js:475:12)

我的env.rb文件是

 require "appium_lib"

 def caps
  {
  caps:{ deviceName: "iPhone",
         platformName: "iOS",
         app: (File.join(File.dirname(__FILE__), "abc.ipa")),
         bundleId: "com.abc.abc",
         newCommandTimeout: "3600",
         appium_lib: { wait: 20,
                       debug: false
            }
       }
   }
  end


 def server_url
  'http://0.0.0.0:4723/wd/hub'
 end

 Appium::Driver.new(caps)   
 Appium.promote_appium_methods Object 

1 个答案:

答案 0 :(得分:0)

似乎Appium无法处理.app路径中的',并且appium团队已经确认了1.5.3版本iOS中的修复。