我是appium
的新用户,并且我在真实设备上运行了一些自动化脚本。当我在模拟器上运行该特定脚本时。没有问题。但是当我尝试在真实设备上运行相同的操作时,我会得到下面提到的错误。
An unknown server-side error occurred while processing the command.
原始错误:
Bad app: /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/build/SafariLauncher/SafariLauncher.app.
应用程序路径必须是绝对的,或相对于appium服务器安装目录,或压缩文件的URL或特殊应用程序名称。
(WARNING: The server did not provide any stack-trace information)
任何类型的帮助将不胜感激
提前致谢。
答案 0 :(得分:0)
当您尝试自动化Safari浏览器时,会使用SafariLauncher。必须为iPhone(真实设备)构建safari启动器。看起来内置的safari启动器是为模拟器而构建的,这就是为什么fruitstrap / ideviceinstaller(appium-ios使用的app安装程序)抱怨应用程序不好的原因。
为您的真实设备编译safarilauncher。 1.从github下载safarilauncher代码 https://github.com/budhash/SafariLauncher 2.使用您的开发人员配置文件编译代码(将通配符作为包ID) 3.将此safari启动器应用程序放置在真实的设备自动化中。
要编译safari启动程序,请点击此链接获取详细信息:
https://discuss.appium.io/t/error-installing-safari-launcher-on-real-device-appium-v1-3-7/3793