无法通过位于/var/db/xcode_select_link 或/usr/share/xcode-select/xcode_dir_link 中的符号链接找到 Xcode 的路径 [英] Could not find path to Xcode by symlinks located in /var/db/xcode_select_link, or /usr/share/xcode-select/xcode_dir_link

查看:28
本文介绍了无法通过位于/var/db/xcode_select_link 或/usr/share/xcode-select/xcode_dir_link 中的符号链接找到 Xcode 的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 php 为 ios 应用程序测试设置 appium,但是当我尝试执行测试脚本时

I am trying to setup appium for ios app testing using php, but when I am tring to execute test scripts

vendor/phpunit/phpunit/phpunit SimpleTest.php --verbose

我收到此错误:

PHPUnit_Extensions_Selenium2TestCase_WebDriverException:处理命令时发生未知的服务器端错误.原始错误:无法通过位于/var/db/xcode_select_link 或/usr/share/xcode-select/xcode_dir_link 中的符号链接找到 Xcode 的路径"

PHPUnit_Extensions_Selenium2TestCase_WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not find path to Xcode by symlinks located in /var/db/xcode_select_link, or /usr/share/xcode-select/xcode_dir_link"

试过这个 sudo xcode-select --switch/Applications/Xcode.app 但没有用.

Tried this sudo xcode-select --switch /Applications/Xcode.app but that didn't work.

推荐答案

正如在这篇文章中已经提到的:where-does-xcode-select-store-information来自 0x1mason 的评论在我的案例中帮助了我 2 个 Xcode 版本.我在终端中使用了以下命令:

As already mention in this post:where-does-xcode-select-store-information The comment from 0x1mason helped me in my case with 2 Xcode-Versions. I used the following commands in Terminal:

  1. readlink/var/db/xcode_select_link --> 检查路径
  2. xcode-select --reset
  3. 重新启动 MacOS
  4. 在终端中使用 readlink/var/db/xcode_select_link 再次检查

希望对你也有帮助.

这篇关于无法通过位于/var/db/xcode_select_link 或/usr/share/xcode-select/xcode_dir_link 中的符号链接找到 Xcode 的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆