AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1476416
Accepted
SilverF0x
SilverF0x
Asked: 2019-08-29 12:15:03 +0800 CST2019-08-29 12:15:03 +0800 CST 2019-08-29 12:15:03 +0800 CST

Appium 不会在真实 iOS 设备上从 Eclipse 启动

  • 772

我在 iOS 的 Appium 上的 Eclipse 项目中运行时遇到问题。自从我开始在新的 Mac 上进行设置以来,iOS 一直是一个令人头疼的问题,并且一直给我带来问题。几个星期以来,我什至无法让它在检查器中工作。之前我只需要使用我的苹果开发者证书,但现在这似乎还不够。

通过在 Xcode 中转到产品 > 测试以在手机上手动安装 WebDriverAgentRunner,我终于能够让 appium 检查器与 iOS 连接。但是当我尝试从我的 Eclipse 项目运行时它失败了。我知道这不是我的项目的问题,因为当我的同事从他们的计算机上运行它时它工作正常。

这是我从 eclipse 得到的输出:

org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: The desired capabilities must include either an app or a bundleId for iOS
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'Powerleys-MacBook-Pro.local', ip: 'fe80:0:0:0:d9:262b:6818:287e%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '12.0.1'
Driver info: driver.version: AppiumDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The desired capabilities must include either an app or a bundleId for iOS
    at getResponseForW3CError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9)
    at asyncHandler (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:447:37)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'Powerleys-MacBook-Pro.local', ip: 'fe80:0:0:0:d9:262b:6818:287e%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '12.0.1'
Driver info: driver.version: AppiumDriver

这是我的能力,删除了一些值:

  "deviceName": "iPhone",
"udid": <removed>
  "platformName": "iOS",
  "platformVersion": "11.2.6",
  "noReset": true,
  "bundleId": <removed>
  "automationName": "XCUITest",
  "showXcodeLog": true,
  "xcodeOrgId": <removed>
  "xcodeSigningId": "iPhone Developer",
  "appActivity": <removed>

这是我的版本号。可能是版本不兼容,但我不知道如何检查。

Appium 1.14.1
Xcode Version 10.1 (10B61)
Mac High Sierra 10.13.6
xcode selenium
  • 1 1 个回答
  • 391 Views

1 个回答

  • Voted
  1. Best Answer
    Dmitri T
    2019-08-30T00:41:17+08:002019-08-30T00:41:17+08:00

    日志包含问题的根本原因:

    The desired capabilities must include either an app or a bundleId for iOS
    
    1. 如果应用程序未安装在真实的 iOS 设备上 - 您需要将app移动功能设置为指向包含您的应用程序的 .ipa 文件在本地驱动器或网络上的绝对位置
    2. 如果应用程序安装在真实的 iOS 设备上 - 您需要使用应用程序包 IDbundleId的值设置功能

    此外,您需要为 WebDriverAgentRunner 应用程序(Appium 捆绑包的一部分)配置代码签名,请查看Appium XCUITest Driver Real Device Setup文章了解更多详细信息。如果您不太熟悉该过程并且没有 Apple 开发人员帐户,则使用Appium Studio可能会更容易,它提供了简单的 GUI 向导,允许为 Appium 配置代码签名。

    • 0

相关问题

  • 使用 java webdriver selenium 获取定位器值

  • 找不到设备支持文件

  • Xcode 控制台输入不匹配输出 C++

  • Selenium IDE - 我可以有自定义字段值吗?

  • 无法从 App Store 下载 xCode (Mojave VM Ware)

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    Windows 10 服务称为 AarSvc_70f961。它是什么,我该如何禁用它?

    • 2 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Marko Smith

    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:无法获取本地颁发者证书 (_ssl.c:1056)

    • 4 个回答
  • Marko Smith

    我如何知道 Windows 安装在哪个驱动器上?

    • 6 个回答
  • Martin Hope
    Albin 支持结束后如何激活 WindowsXP? 2019-11-18 03:50:17 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    Kagaratsch Windows 10 删除大量小文件的速度非常慢。有什么办法可以加快速度吗? 2019-09-23 06:05:43 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    Inter Sys Ctrl+C 和 Ctrl+V 是如何工作的? 2019-05-15 02:51:21 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve