最近的项目的开发是在xcode5.1.1的版本上进行的.
前两天公司要求给ios8做适配,于是安装了xcode6.0.1的版本.刚装上新版本的开发工具,有点小兴奋,
用xcode6运行了一下项目点了点,因为在ios7上有些BUG没有修复,所以切回了xcode5.
问题来了,等修复完BUG,用git 准备提交的时候,git找不到路径了.报的错如下:
active developer path ("/Applications/xcode_6.0.1/Xcode.app/Contents/Developer") does not exist, use xcode-select to change
好吧,根据提示,在终端确定路径
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
再用git 查看下状态,OK了.
如图