使用桌面Appium应用程序打开并在模拟器上崩溃该应用程序 [英] App opens and crashes on simulator using desktop Appium app

查看:357
本文介绍了使用桌面Appium应用程序打开并在模拟器上崩溃该应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

测试环境

用于运行Appium:Version 1.2.0-beta.3(1.2.0-beta.3)的桌面OS/版本 Node.js版本(除非使用Appium.app | exe): 测试中的移动平台/版本:iOS模拟器 iPhone 6s plus 10.2

Desktop OS/version used to run Appium:Version 1.2.0-beta.3 (1.2.0-beta.3) Node.js version (unless using Appium.app|exe): Mobile platform/version under test:ios simulator iPhone 6s plus 10.2

1.从sourcetree中提取最新代码

1.Pulled latest code from sourcetree

2.打开的xcode

2.opened xcode

3.制作一个存档文件

3.made a archive file

4.从那里获取应用程序文件.

4.got the app file from there.

5.打开的Appium桌面应用

5.opened Appium desktop app

6.添加了所需的功能

6.added the desired capabilities

.{

"app":"/Users/Desktop/PreProd.app", "platformName":"iOS", "deviceName":"iPhone 6s Plus", "platformVersion":"10.2", "automationName":"XCUITest" }

"app": "/Users/Desktop/PreProd.app", "platformName": "iOS", "deviceName": "iPhone 6s Plus", "platformVersion": "10.2", "automationName": "XCUITest" }

8.应用程序打开并崩溃

8.The app opens and crashes

appium日志文件

推荐答案

应用程序崩溃,因为您尝试启动的.app文件是

The application crashes because the .app file you are trying to launch is either

  1. 不兼容模拟器
  2. 未与当前的模拟器体系结构捆绑和编译
  3. 具有不正确的捆绑包ID

尝试使用xcode命令为模拟器构建.app文件

Try building the .app file for the simulator using the xcode command

xcodebuild -arch x86_64 -sdk iphonesimulator11.3 -workspace {projectname}.xcworkspace -scheme {schemaname} -configuration {configurationname} SYMROOT=${WORKSPACE}/build/{projectname}.xcarchive

一旦生成.app文件,请使用该文件并尝试启动.

Once the .app file is generated, use that and try launching.

这篇关于使用桌面Appium应用程序打开并在模拟器上崩溃该应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆