英文:
Appium Doctor: why it claims xcode not install while I installed xcode indeed?
问题
以下是翻译好的部分:
这是我从Mac应用商店截取的屏幕截图:
你可以看到我已经清楚地安装了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安装不正确吗?我该如何解决这个问题?
英文:
Here is my screenshot from mac app store:
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?
答案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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论