Appium 似乎不支持 XCUITest Simulator 架构 [英] XCUITest Simulator architecture appears to be unsupported by the Appium

查看:36
本文介绍了Appium 似乎不支持 XCUITest Simulator 架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Saucelabs(appium) 中测试我的 React Native iOS 应用.Saucelas 需要在 xcode 构建后创建的 .app 文件夹的压缩文件.

I am trying to test my react native iOS app in saucelabs(appium). Saucelabs require a file zip of .app folder created after the xcode build.

我正在使用以下步骤(bitrise 步骤)创建 .app 文件夹和 zip 文件.1) 设置 Xcode 项目版本号2) Xcode 存档 &导出 iOS

I am using following steps(bitrise steps) to create the .app folder and the zip file. 1) Set Xcode Project Build Number 2) Xcode Archive & Export for iOS

创建 zip 文件后,它会上传到酱汁实验室.

Once the zip file is created it is uploadedin the saucelabs.

当我在saucelabs 中执行测试时,我从appium 服务器收到以下错误.

When I execute the tests in saucelabs, I get the following error from the appium server.

> 2018-06-20 08:58:53:668 - [XCUITest] *********************************
> 2018-06-20 08:58:53:669 - [XCUITest] Simulator architecture appears to be unsupported by the '/var/folders/s9/gmkmk07d6gq_pt_v72yyt8xc0000kr/T/tmpFzu0Wp/test.app' application. Make sure the correct deployment target has been selected for its compilation in Xcode.
> 2018-06-20 08:58:53:669 - [XCUITest] Don't be surprised if the application fails to launch.
> 2018-06-20 08:58:53:669 - [XCUITest] *********************************

当我从 bitrise 下载 zip 并在本地 appium 服务器中测试 zip 时,我遇到了同样的错误.

When I downloaded the zip from the bitrise and test the zip in local appium server, I got the same error.

但是当我使用 Xcode 从本地 MacBook 系统创建一个新版本时,它可以在 Saucelabs 和本地 appium 服务器中完美运行.

But when I create a new build from local MacBook system using Xcode, it works perfectly file in saucelabs as well as in local appium server.

使用 bitrise 为 Saulabs iOS 测试创建构建的正确方法是什么?

What is the proper way to create a build for saucelabs iOS test using bitrise?

推荐答案

使用 -sdk iphone-simulator 进行 .app 构建.然后创建一个zip文件并将其上传到saucelabs

use -sdk iphone-simulator to make a .app build. Then create a zip file and upload it to saucelabs

这篇关于Appium 似乎不支持 XCUITest Simulator 架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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