简体   繁体   English

Xcode 运行 Appium Inspector 时出现 65 错误

[英]Xcode 65 error while running Appium Inspector

I'm facing this error while running Appium Inspector:我在运行 Appium Inspector 时遇到了这个错误:

Failed to create session. An unknown server-side error occurred while processing the command. Failed to create session。处理命令时发生未知的服务器端错误。 Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message原始错误:Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message

My versions: Xcode version - 14.2 Appium version - 1.22.3我的版本:Xcode 版本 - 14.2 Appium 版本 - 1.22.3

Opened "WebDriverAgent.xcodeproj" in Xcode and saw this failure:在Xcode打开“WebDriverAgent.xcodeproj”看到这个失败:

ld: cannot link directly with dylib/framework, your binary is not an allowed client of /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport for architecture arm64 ld:无法直接与 dylib/framework 链接,您的二进制文件不是 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport for architecture arm64 的允许客户端

Is this related?这有关系吗?

Had this issue and I followed those steps:有这个问题,我遵循了这些步骤:

  1. npm uninstall appium npm 卸载appium
  2. npm install -g appium@next npm 安装-g appium@next
  3. appium plugin install execute-driver appium 插件安装执行驱动程序
  4. appium -pa /wd/hub --use-plugins execute-driver appium -pa /wd/hub --use-plugins 执行驱动程序
  5. appium driver install xcuitest appium驱动安装xcuitest
  6. appium driver install uiautomator2 appium驱动安装uiautomator2

Took the solution from: https://github.com/appium/appium/issues/17497从以下位置获取解决方案: https://github.com/appium/appium/issues/17497

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

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