ios - appium 服务器端错误 : xcodebuild failed with code 65

标签 ios webdriver appium

appium 版本:1.13.0

我有 iphone 真实设备,ios 版本 13.1,当我尝试使用此功能安装我的应用程序时:

{
  "udid": "95bce4567740508a3de73283a5620c8eb9db5d118",
  "platformName": "ios",
  "platformVersion": "13.1",
  "app": "/Users/app.ipa",
  "xcodeOrgId": "BX3P2D4G47",
  "newCommandTimeout": "300",
  "autoGrantPermissions": true,
  "deviceName": "iPhone 7",
  "automationName": "XCUITest",
  "useNewWDA": true
}

我遇到了这个错误:

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-09-25 11:07:59.703 xcodebuild[5160:43162] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 "The folder “WebDriverAgentRunner_iphoneos13.0-arm64.xctestrun” doesn’t exist." UserInfo={NSFilePath=/Users/dan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/WebDriverAgentRunner_iphoneos13.0-arm64.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7f836c7fa120 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} ** TEST BUILD FAILED ** 2019-09-25 11:07:59.754 xcodebuild[5160:43141] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/dan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2019.09.25_11-07-59-+0300.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-C9D2E30A-A644-46F4-AEBD-114C2CA689AF/WebDriverAgentRunner-DAE75DFA-F856-4621-BB6C-F2D6213F5F0A/Session-WebDriverAgentRunner-2019-09-25_110759-ixovOa.log 2019-09-25 11:07:59.755 xcodebuild[5160:43104] [MT] IDETestOperationsObserverDebug: (1D5447AC-F596-4529-8791-95E89065BD51) Beginning test session WebDriverAgentRunner-1D5447AC-F596-4529-8791-95E89065BD51 at 2019-09-25 11:07:59.755 with Xcode 11A420a on target ?? { deviceSerialNumber: F17T7BU4HG7G identifier: 95bce455af0508a3de73283a5620c8eb9db5d118 deviceClass: iPhone deviceName: Evgeniy’s iPhone deviceIdentifier: 95bce455af0508a3de73283a5620c8eb9db5d118 productVersion: 13.1 buildVersion: 17A844 deviceSoftwareVersion: 13.1 (17A844) deviceArchitecture: arm64 deviceTotalCapacity: 26957225984 deviceAvailableCapacity: 22861582336 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsPaired: YES deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: supportedDeviceFamilies: ( 1 ) applications: (null) provisioningProfiles: (null) hasInternalSupport: NO hasWritableSystem: NO isSupportedOS: YES bootArgs: (null) nextBootArgs: (null) connected: YES isWirelessEnabled: NO connectionType: direct hostname: (null) bonjourServiceName: 88:6b:6e:22:9f:6b@fe80::8a6b:6eff:fe22:9f6b._apple-mobdev2._tcp.local. activeProxiedDevice: (null) } (13.1 (17A844)) 2019-09-25 11:07:59.891 xcodebuild[5160:43104] [MT] IDETestOperationsObserverDebug: (1D5447AC-F596-4529-8791-95E89065BD51) Finished requesting crash reports. Continuing with testing. *** If you believe this error represents a bug, please attach the result bundle at /Users/dan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2019.09.25_11-07-59-+0300.xcresult 2019-09-25 11:07:59.939 xcodebuild[5160:43104] [MT] IDETestOperationsObserverDebug: 0.200 elapsed -- Testing started completed. 2019-09-25 11:07:59.939 xcodebuild[5160:43104] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start 2019-09-25 11:07:59.939 xcodebuild[5160:43104] [MT] IDETestOperationsObserverDebug: 0.200 sec, +0.200 sec -- end 2019-09-25 11:07:59.940 xcodebuild[5160:43104] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/dan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7f836ca0ed50 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} Test session results, code coverage, and logs: /Users/dan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2019.09.25_11-07-59-+0300.xcresult Testing failed: "WebDriverAgentRunner" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor. WebDriverAgentRunner: WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory))) ** TEST EXECUTE FAILED ** Testing started on 'Evgeniy’s iPhone'. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

有什么建议吗? 我的 xcode 项目构建没有错误。

最佳答案

您没有xcodeSigningId 功能,这就是我猜的原因。读一读 here . 开始添加:

"xcodeSigningId": "iPhone Developer"

关于ios - appium 服务器端错误 : xcodebuild failed with code 65,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58095912/

相关文章:

ios - Apple 拒绝 - 无法重现崩溃

java - 无法点击 Android 移动应用程序上 textview 消息内的链接 - Appium

java - 如果 beforeclass 注释中的驱动程序初始化失败,则测试用例不会失败

java - 无法使用 appium 进行 native 应用程序自动化在真实设备上执行任何操作

ios - iphone主题处于黑暗模式时导航栏样式更改

ios - 唯一整数值

ios - 为什么 UILabel() 返回 nil?

exception - 如何避免加载网页时因 watir-webdriver 超时错误导致程序终止?

selenium - 如何基于 Protractor 的相对值构建 xpath/css-selector

asp.net - 这是使用 WebDriver 处理 javascript 警报对话框的正确方法吗?