---
title: "mac 命令行里 编译 链接 出现xcrun: error: active developer path"
author: "jiapumin"
date: "2014-10-08T15:15:17Z"
tags: []
categories: ["移动开发"]
slug: "mac-xcrun-error-active-developer-path"
draft: false
lastmod: "2014-10-08T15:15:17Z"
id: 2125318
url: "https://jiapumin.iteye.com/blog/2125318"
---

mac cc 编译出现

xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use xcode-select to change

 

在命令行里输入

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