Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"No space left on device" error when compiling

Tags:

xcode

ios

iphone

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?

like image 335
user3115233 Avatar asked Jun 24 '15 14:06

user3115233


People also ask

What do you do when there is no space left on your device?

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.

How do I get rid of no space left on device Linux?

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.

How do I fix Oserror Errno 28 No space left on device?

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'


2 Answers

There are two common steps to this fairly common issue:

  1. Delete the app from your device.

  2. command+k which will clean your code and run again.

    OR

  3. 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.

like image 74
App Dev Guy Avatar answered Sep 18 '22 09:09

App Dev Guy


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.

like image 29
lee Avatar answered Sep 21 '22 09:09

lee