Mac使用appium-doctor 提示我xocde没有安装

上一篇 / 下一篇  2019-09-04 11:00:31 / 个人分类:appium

背景:xocde是同事电脑使用airdrop传过来的(安装还一定要用右键安装),在download文件夹下
使用appium-doctor 就是提示我Xcode没有安装
经过:经过网上搜索结果,讲了些源码的问题,我找了下我机器上,并没有找到appium-doctor中引用的ios.js 文件啥的。

解决方案:使用命令xcode-select 
网上给的 –switch 参数好像不对。

xcode-select –switch /Users/111/Downloads/Xcode.app/Contents/Developer

xcode-select: error: invalid argument '-–switch'

Usage: xcode-select [options]


Print or change the path to the active developer directory. This directory

controls which tools are used for the Xcode command line tools (for example, 

xcodebuild) as well as the BSD development commands (such as cc and make).


Options:

  -h, --help                  print this help message and exit

  -p, --print-path            print the path of the active developer directory

  -s <path>, --switch <path>  set the path for the active developer directory

  --install                   open a dialog for installation of the command line developer tools

  -v, --version               print the xcode-select version

  -r, --reset                 reset to the default command line tools path


使用--switch好像也不行,最后,-s成功了,但是要sudo一下。


其中后面跟的是xcode的路径。

首先找到Xcode,右键-显示包内容,里面就能跟着路径找到Xcode.app/Contents/Developer

其次查找全路径,显示简介的路径中有


最后appium-doctor的Xcode就能检测到了。


TAG:

杨如意的个人空间 引用 删除 杨如意   /   2019-09-08 20:43:07
3
杨如意的个人空间 引用 删除 杨如意   /   2019-09-08 20:43:04
加油加油加油
杨如意的个人空间 引用 删除 杨如意   /   2019-09-08 20:41:51
很厉害的样子真的
 

评分:0

我来说两句

Open Toolbar