/Users/XX/Library/Developer/Xcode/DerivedData/XX. app/xxsdk. bundle Directory not empty, xcodederiveddata
After upgrading xcode today, the real machine debugging accidentally found this problem. I checked some information and found that the problem still could not be completely solved.
Solution: Reference (http://blog.csdn.net/alincexiaohao/article/details/37498279)
1. cache files in/Users/your computer name/Library/Developer/Xcode/DerivedData occupy a large amount of cache space. If you do not delete the cached files in xcode for a long time, the hard disk space will become smaller and smaller until Directory not empty. If the cached file is deleted and then run, no error is reported.
Delete DerivedData: after reading the terminal, enter sudo chmod-R 777/Users/xxx/Library/Developer/Xcode/DerivedData or directly go to the directory to delete the data.
2. Follow the steps 1 to find that there are still problems. There are two errors in total, and one solves only one.Later, I deleted the app on my mobile phone and solved the command + R error.