问题描述
测试环境
用于运行 Appium 的桌面操作系统/版本:版本 1.2.0-beta.3 (1.2.0-beta.3)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 simulatoriPhone 6s plus 10.2
1.从源树中提取最新代码
1.Pulled latest code from sourcetree
2.打开xcode
3.制作存档文件
4.从那里获取应用程序文件.
4.got the app file from there.
5.打开Appium桌面应用
5.opened Appium desktop app
6.添加了所需的功能
.{
"app": "/Users/Desktop/PreProd.app","platformName": "iOS","deviceName": "iPhone 6s Plus",平台版本":10.2",自动化名称":XCUITest"}
"app": "/Users/Desktop/PreProd.app","platformName": "iOS","deviceName": "iPhone 6s Plus","platformVersion": "10.2","automationName": "XCUITest"}
8.应用程序打开并崩溃
8.The app opens and crashes
推荐答案
应用程序崩溃,因为您尝试启动的 .app
文件是
The application crashes because the .app
file you are trying to launch is either
- 与模拟器不兼容
- 未与当前模拟器架构捆绑和编译
- 捆绑包 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 应用程序在模拟器上打开并崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!