【问题标题】:Appium - iOS - Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4Appium - iOS - 写入 xctestrun 文件时出错:错误域 = NSCocoaErrorDomain 代码 = 4
【发布时间】:2019-08-31 00:25:38
【问题描述】:

我正在尝试使用自动服务器将 Appium 1.12.1 连接到物理 iOS 设备。这些是我正在尝试的功能:

{
  "browserName": "Safari",
  "platformName": "iOS",
  "platformVersion": "12.1",
  "deviceName": "iPhone 6",
  "automationName": "XCUITest",
  "startIWDP": true,
  "udid": "auto"
}

我收到一个冗长的错误,开头为:

An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65 xcodebuild error message: 2019-04-09 10:14:08.626 xcodebuild[22198:212737] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 "The folder “WebDriverAgentRunner_iphoneos12.2-arm64.xctestrun” doesn’t exist." 

【问题讨论】:

标签: ios xcode appium


【解决方案1】:

我遇到了同样的问题。 在“/Users/YOUR_NAME/Library/Developer/Xcode/DerivedData/”我有两个文件夹: WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu

Appium 尝试从 WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz 获取文件夹,但需要 WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu。 我从 WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu 复制到 WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz,现在一切正常。

【讨论】:

  • 对我不起作用,我的问题是我的 Build 文件夹不包含 Products 文件夹
猜你喜欢
  • 2019-01-02
  • 2017-06-16
  • 2018-08-18
  • 2020-05-06
  • 2016-02-26
  • 2018-04-08
  • 2015-03-11
  • 2018-07-21
  • 2020-03-14
相关资源
最近更新 更多