【问题标题】:XCUITest Simulator architecture appears to be unsupported by the Appium1.13.0Appium1.13.0 似乎不支持 XCUITest 模拟器架构
【发布时间】:2019-10-26 21:03:45
【问题描述】:

我正在尝试使用 Appium v​​1.13.0 测试本机 iOS 应用程序。

当我使用 iOS 模拟器执行测试时, Xcode 10.2,我从 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))
*********************************
*********************************

【问题讨论】:

    标签: ios automation appium xcuitest


    【解决方案1】:

    您的应用程序似乎仅针对iPhoneOS 平台构建,您将无法在模拟器中运行它,因为模拟器采用不同的架构(x86),而真正的iOS 设备在ARM 上运行

    您需要执行xcodebuild 命令并指定iOS Simulator 平台作为输出目标,如:

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

    如果您无法访问应用程序源 - 不幸的是,您只能使用真实的 iOS 设备对其进行测试,请查看Appium XCUITest Driver Real Device Setup 文章了解所需步骤(顺便说一下,生成/管理的过程使用Appium Studio,配置配置文件和模拟器/设备更容易)

    【讨论】:

    • 执行命令时出现以下错误 以下构建命令失败:CompileSwift normal x86_64 CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (2 failures)
    • 谢谢。它可以工作,但我怎样才能导出 IPA 文件而不是 .app
    猜你喜欢
    • 2023-03-18
    • 1970-01-01
    • 2021-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-20
    相关资源
    最近更新 更多