通过/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

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

问题描述

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

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.

推荐答案

正如本文中已经提到的: 0x1mason 的评论在我的案例中为我提供了2个Xcode-Versions.我在终端中使用了以下命令:

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天全站免登陆