1.进入perferences->locations,删掉DerivedData这个文件夹 . 2.强制关掉Xcode。 快捷键:command+option+shift+esc 或者打开应用程序->实用工具-> 活动监视器,选中Xcode,并强制退出。