简体   繁体   English

Appium1.13.0似乎不支持XCUITest Simulator体系结构

[英]XCUITest Simulator architecture appears to be unsupported by the Appium1.13.0

I am trying to test native iOS app using Appium v1.13.0. 我正在尝试使用Appium v​​1.13.0测试本地iOS应用。

When I execute the tests using iOS Simulator lunched by Xcode 10.2, I get the following error from the Appium server. 当我使用Xcode 10.2午餐的iOS模拟器执行测试时,我从Appium服务器收到以下错误。

*********************************
*********************************
[XCUITest] Verifying application platform
[XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"]
[XCUITest] *********************************
[XCUITest] Simulator architecture appears to be unsupported by the '/var/folders/ld/f5b4gf396332hxdc9tw6kyrc0000gn/T/2019512-62665-1x5tail.vqbi/Payload/*****.app' application. Make sure the correct deployment target has been selected for its compilation in Xcode.
[XCUITest] Don't be surprised if the application fails to launch.
[XCUITest] *********************************
[XCUITest] Reset requested. Removing app with id 'com.*****.mp' from the device
[XCUITest] Installing '/var/folders/ld/f5b4gf396332hxdc9tw6kyrc0000gn/T/2019512-62665-1x5tail.vqbi/Payload/*****.app' on Simulator with UUID '204794D9-CA97-479C-B004-8DBC04942CF5'...
[XCUITest] The app has been installed successfully.
[BaseDriver] Event 'appInstalled' logged at 1560335980109 (13:39:40 GMT+0300 (EEST))
*********************************
*********************************

It seems that your application has been built for iPhoneOS platform only, you will not be able to run it in the Simulator as the simulator assumes different architecture ( x86 ) while real iOS devices run on ARM 看来您的应用程序仅是为iPhoneOS平台构建的,您将无法在Simulator中运行它,因为当真实的iOS设备在ARM上运行时,模拟器采用不同的架构( x86

You need to execute xcodebuild command and specify iOS Simulator platform as the output target like: 您需要执行xcodebuild命令并将iOS Simulator平台指定为输出目标,例如:

xcodebuild build -workspace "*****.xcworkspace" -scheme "*****" -destination "platform=iOS Simulator,name=iPhone SE" -configuration Release

If you don't have access to the application sources - unfortunately you will be only able to test it using real iOS devices, check out Appium XCUITest Driver Real Device Setup article for the required steps (by the way, the processes of generating/managing provisioning profiles and Simulators/devices are much easier with the Appium Studio ) 如果您无权访问应用程序源-不幸的是,您将只能使用真实的iOS设备进行测试,请参阅“ Appium XCUITest驱动程序真实设备设置”文章,了解所需步骤(顺便说一下,生成/管理过程使用Appium Studio可以更轻松地配置配置文件和模拟器/设备)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM