In Xcode, when I tried to run my app on my device (iPhone), I get "no space left on device". The app was working on iPhone yesterday, but today I got this error.
Anyone know how to fix this problem?
No space left on device Print No space left on device error often means you are over quota in the directory you're trying to create or move files to. 1. If you are trying to move a file from another location, change the group ownership of the file before moving it or use the copy command instead.
Such difference between the output of du -sh and df -h may happen if some large file has been deleted, but is still opened by some process. Check with the command lsof | grep deleted to see which processes have opened descriptors to deleted files. You can restart the process and the space will be freed.
Your local folder does not have enough space available for the operation. In your environment, update the 'TEMP', 'TMPDIR' or 'TMP' environment variable to a location with additional free space. Validate the updated location: Windows - command-prompt 'set'
There are two common steps to this fairly common issue:
Delete the app from your device.
command+k which will clean your code and run again.
OR
Close Xcode and reopen, run again.
Ensure you delete the app from your device first. If necessary, turn your phone off and on again, but I have never had to do this after erasing the app from the device and reinstalling.
Maybe need to check storage on your Mac. I have the same problem with Xcode8.3.2
with 2Gb available of SSD on MacBook, after delete somethings then it worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With