xcode 终端找不到路径换路径方法
环境:
1. 操作系统:os x 10.8(从10.7.4升级过来的)
2.xcode 4.4
xcode 4.4和以前的版本不一样,不需要安装,下载dmg打开里面就是xcode.app,复制到硬盘中即可
我先删除了老的xcode 4.3,然后把xcode 4.4复制到applications里
通过命令行编译以前写的程序,
xcodebuild -configuration Release
出现:
could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)
解决办法:
xcode-select -switch
新的xcode路径
如
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer