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

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

问题描述

我正在尝试在ucelabs(appium)中测试我的本机iOS应用程序. Saucelabs需要在xcode构建后创建的.app文件夹的文件zip.

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.

我正在使用以下步骤(位升序步骤)创建.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.

当我在ucelabs中执行测试时,我从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系统创建新版本时,它可以在ucelabs以及本地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为ucelabs 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天全站免登陆