Nativescript 无法识别 Xcode (High Sierra)
Nativescript doesn't recognize Xcode (High Sierra)
我在使用 Xcode 版本 9.0.1 (9A1004) 的 High Sierra。
当 运行ning tns doctor
我收到以下警告:
WARNING: Xcode is not installed or is not configured properly.
You will not be able to build your projects for iOS or run them in the iOS Simulator.
To be able to build for iOS and run apps in the native emulator, verify that you have installed Xcode.
如果我运行安装脚本,另外我得到:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Xcode is not installed or not configured properly. Download, install, set it up and run this script again.
您可能已经猜到了,我已经从应用商店安装了 Xcode,并且还安装了 cocoapods 和 xcodeproj。这是我收到的唯一警告。
有什么建议吗?
运行 以下命令:
sudo xcode-select --reset
我在这里找到了这个答案:
我今天遇到了这个问题,但是 运行 推荐的命令没有帮助。我发现 运行 命令
$ tns doctor
引导我完成了一系列提示并更正了问题。程序完成后我确实必须重新启动终端才能生效。
打开 Xcode 然后转到“首选项”->“位置”->“命令行工具”,之后它会自动采用相同的路径。系统可能会要求输入 sudo 密码。
我在使用 Xcode 版本 9.0.1 (9A1004) 的 High Sierra。
当 运行ning tns doctor
我收到以下警告:
WARNING: Xcode is not installed or is not configured properly.
You will not be able to build your projects for iOS or run them in the iOS Simulator.
To be able to build for iOS and run apps in the native emulator, verify that you have installed Xcode.
如果我运行安装脚本,另外我得到:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Xcode is not installed or not configured properly. Download, install, set it up and run this script again.
您可能已经猜到了,我已经从应用商店安装了 Xcode,并且还安装了 cocoapods 和 xcodeproj。这是我收到的唯一警告。
有什么建议吗?
运行 以下命令:
sudo xcode-select --reset
我在这里找到了这个答案:
我今天遇到了这个问题,但是 运行 推荐的命令没有帮助。我发现 运行 命令
$ tns doctor
引导我完成了一系列提示并更正了问题。程序完成后我确实必须重新启动终端才能生效。
打开 Xcode 然后转到“首选项”->“位置”->“命令行工具”,之后它会自动采用相同的路径。系统可能会要求输入 sudo 密码。