Appium Doctor: 为什么它声称Xcode未安装,而我确实已安装Xcode?

huangapple go评论77阅读模式
英文:

Appium Doctor: why it claims xcode not install while I installed xcode indeed?

问题

以下是翻译好的部分:

这是我从Mac应用商店截取的屏幕截图:

Appium Doctor: 为什么它声称Xcode未安装,而我确实已安装Xcode?

你可以看到我已经清楚地安装了Xcode。

但是当我运行appium-doctor时:

➜ ~ appium-doctor
info AppiumDoctor Appium医生版本1.13.0
info AppiumDoctor ### 开始必要依赖项的诊断 ###
info AppiumDoctor ✔ 找到Node.js二进制文件位置:/usr/local/bin/node
info AppiumDoctor ✔ Node版本为13.5.0
WARN AppiumDoctor ✖ 未安装Xcode!
info AppiumDoctor ✔ Xcode命令行工具已安装在:/Library/Developer/CommandLineTools
info AppiumDoctor ✔ DevToolsSecurity已启用。
info AppiumDoctor ✔ 授权数据库已正确设置。
info AppiumDoctor ✔ 找到Carthage位置:/usr/local/bin/carthage。已安装版本为0.34.0
info AppiumDoctor ✔ HOME已设置为:/Users/zhengxiangshen
WARN AppiumDoctor ✖ 未设置ANDROID_HOME!
WARN AppiumDoctor ✖ 未设置JAVA_HOME!
WARN AppiumDoctor ✖ 无法找到adb,因为未设置ANDROID_HOME!
WARN AppiumDoctor ✖ 无法找到android,因为未设置ANDROID_HOME!
WARN AppiumDoctor ✖ 无法找到模拟器,因为未设置ANDROID_HOME!
WARN AppiumDoctor ✖ 未设置$JAVA_HOME的bin目录

它声明WARN AppiumDoctor ✖ 未安装Xcode!,所以我感到困惑。

是否有人能给我一些建议?Xcode安装不正确吗?我该如何解决这个问题?

更新:
我检查了一下,XCode在我的应用程序文件夹中:
Appium Doctor: 为什么它声称Xcode未安装,而我确实已安装Xcode?

英文:

Here is my screenshot from mac app store:

Appium Doctor: 为什么它声称Xcode未安装,而我确实已安装Xcode?

you can see I install xcode clearly.

But when I run appium-doctor:

➜  ~ appium-doctor
info AppiumDoctor Appium Doctor v.1.13.0
info AppiumDoctor ### Diagnostic for necessary dependencies starting ###
info AppiumDoctor  ✔ The Node.js binary was found at: /usr/local/bin/node
info AppiumDoctor  ✔ Node version is 13.5.0
WARN AppiumDoctor  ✖ Xcode is NOT installed!
info AppiumDoctor  ✔ Xcode Command Line Tools are installed in: /Library/Developer/CommandLineTools
info AppiumDoctor  ✔ DevToolsSecurity is enabled.
info AppiumDoctor  ✔ The Authorization DB is set up properly.
info AppiumDoctor  ✔ Carthage was found at: /usr/local/bin/carthage. Installed version is: 0.34.0
info AppiumDoctor  ✔ HOME is set to: /Users/zhengxiangshen
WARN AppiumDoctor  ✖ ANDROID_HOME is NOT set!
WARN AppiumDoctor  ✖ JAVA_HOME is NOT set!
WARN AppiumDoctor  ✖ adb could not be found because ANDROID_HOME is NOT set!
WARN AppiumDoctor  ✖ android could not be found because ANDROID_HOME is NOT set!
WARN AppiumDoctor  ✖ emulator could not be found because ANDROID_HOME is NOT set!
WARN AppiumDoctor  ✖ Bin directory for $JAVA_HOME is not set

It claims WARN AppiumDoctor ✖ Xcode is NOT installed!, so I get confused.

Could anyone give me some suggestions about that? Is Xcode not installed correctly? How could I cover this issue?

Update:
I checked, and XCode is in my Application folder:
Appium Doctor: 为什么它声称Xcode未安装,而我确实已安装Xcode?

答案1

得分: 1

它会从“Applications”文件夹中选择Xcode。因此,您首先需要将Xcode移动到“Applications”文件夹,然后才能运行此命令。

英文:

It picks the Xcode from the Applications folder. So you need to move the Xcode to the Applications folder first and then you can run this command.

huangapple
  • 本文由 发表于 2020年1月4日 13:01:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/59588040.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定