【问题标题】:Cannot install. ipa in iOS real device with appium无法安装。带有appium的iOS真机中的ipa
【发布时间】:2023-04-02 22:01:01
【问题描述】:

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

我可以使用命令ideviceinstaller -i abc.ipa 手动安装ideviceinstaller

但是在 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 

【问题讨论】:

    标签: ios ruby cucumber appium appium-ios


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2017-02-04
      • 1970-01-01
      • 1970-01-01
      • 2021-01-28
      • 2018-11-21
      • 2018-08-11
      • 1970-01-01
      • 2021-05-01
      • 2017-03-08
      相关资源
      最近更新 更多