终端pod install安装框架时报错“xcrun: error: active developer path ("/Applications/Xcode 2.app/Contents/...”

来源:互联网 发布:r语言处理csv数据 编辑:程序博客网 时间:2024/05/22 03:10
  1. 错误描述

在Mac终端使用pod install –no-repo-update安装第三方框架时出现如下错误。

xcrun: error: active developer path ("/Applications/Xcode 2.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)

2.解决方法
在终端输入下述代码,问题得到解决。

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

本文参考如下文章:删除xcode路径问题

0 0
原创粉丝点击