WOuld it be Ok to delete the Archives folders content from Xcode Library/Developer/Xcode….I am running out of DiskSpace and I just found out this takes about 12GB OF MY HDD, I AM USING XCODE 5.1.1
Yes, however if you have released binaries (i.e. binaries distributed via app store or locally within your enterprise) within these archives then you will lose your symbols and be unable to symbolicate crash logs.
If you haven't released binaries then there is no problem.
Side Note: I move all those Xcode folders to my ~/tmp directory for easy access so examining/deleting their content is easy; and some of them, like DerivedData, can even be mapped to a RAM disk ;-)
Related
So I just updated my Mac with the latest macOS version 10.14.4 (18E226) but had to delete Xcode to make some space for updating the OS.
Currently I have 37 GB of free space, still while downloading Xcode from the App Store it shows
There is not enough disk space available to install the product.
How much space is required?
I have already tried clearing all cache files.
I was having the same problem. Even though macOS shows enough free space it does not have it as it accounts purgeable space as usable but I guess the installation of Xcode for some reason is not able to claim it.
A lot of space if probably held by TimeMachine local backups. You can claim space back by freeing that space with the terminal command
tmutil thinlocalsnapshots / 10000000000 4
This frees 10GB (took a little over a minute on my 2014 MBPro)
It worked for me. I had 40GB free, even after deleting my previous xCode version but was unable to install. After running that tmutil command it worked
For Xcode 12 - 30 Gb free, 40 Gb free - show an error "There is not enough disk space available to install the product."
So in my case - I clean my ~/Library/Developer/Xcode/iOS DeviceSupport/ folder, 50 Gb free - and now I can download Xcode 12...
Launchpod shows it needs to download 11,16 Gb, but you need ~50Gb of free space
XCode 12 requires you to have 40GB or more disk space or you will get the error "There is not enough disk space available to install the product.".
One can try to make space by clearing old iOS simulators from
"~/Library/Developer/Xcode/iOS\ DeviceSupport/" and "~/Library/Developer/Xcode/DerivedData/"
or
removing old xCode.
I used to download the Xcode xip file and copied it to an external drive. Then I open the Archive Utility app -> Preference -> Save expanded files to the Application directory. Now open the Xcode xip file from an external drive it'll extract the file to the application directory of mac. No need to have more space, I had only 18GB of free space.
Update: Xcode 12.5.1
Now it's working only if you've around 37GB of free space.
i had 42 GB Space and i was successfully able to install xcode 12.4 via app store.
Just found another solution which worked for me:
download Xcode from Apple Developer, and after the download completes open it with "Archive Utility".
Though you already got the answer. But I have solved this in other simple way by following steps
Run this command in terminal to install/expand the Xcode
xip -x ~/Downloads/Xcode_12.4.xip
For Application directory installation
cd ~/Applications #otherwise, will unpack into home dir
Note : You can use ur desired Xcode version like Xcode_10.2 or something else
Download Xcode manually from
https://developer.apple.com/download/more/
In my case, using also Android Studio to develop, I have to delete old simulators in folder:
/Users/UserName/.android/avd
➼ All you have to free 30+ gb space and then restart laptop.
Note: Restarting your laptop is must in order to get rid of this warning (There is not enough disk space available to install the product)
I guess you should check how much does your system file take up in your mac. I cleaned up a lot of redundant files categorized in system and left with 30GB free space, the Xcode.xip works!
I can not install xcode 10.1 on my mac
it gives me error
There is not enough disk space available to install the product.
although I have 18 GB free
can anyone tell me what is the problem
Clear the data from these two locations on your mac book
~/Library/Developer/Xcode/iOS DeviceSupport/
~/Library/Developer/Xcode/DerivedData/
These are temp files. They will be regenerated by Xcode.
Now try installing.
The xcode xip file is around 6GB. When you unzip it, it will take around 12 GB of space. Further installation will take place once you launch the xcode first time. So yes 18GB seems a lot but xcode can eat it all in no time and want more.
There is something wrong with AppStore, I had the same issue I had to download the file directly
here is the link for Xcode 10.2
https://download.developer.apple.com/Developer_Tools/Xcode_10.2/Xcode_10.2.xip
here my alternative link from google drive
https://drive.google.com/uc?id=1obcFEhddXF9cCMviSiA144r9ymDzNHhv&export=download
just download and installed
⦿ if you have enough space and still facing this issue, you may need to Restart Your Mac.
⦿ And if you want to clear some space, you need to remove these folders:
~/Library/Developer/Xcode/iOS DeviceSupport/
~/Library/Developer/Xcode/DerivedData/
So because of the poor internet connect I have in China, I downloaded iOS 9.3 simulator SDK from here via multithreads web connection: devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK9_3-9.3.1.1460411551.dmg
After installation the simulator doesn't show up in my hardware (Xcode menu), so I guess it wasn't compatible with the newest Xcode 8.3.2, yet it does take up additional 3.6 GB storage space of my laptop (of which only has 9 GB left right now). I then left the laptop on and downloaded the SDK from Xcode directly and installed it successfully, the problem is that it didn't remove the 3.6 GB files from previous installation so now I have less than 1 GB left on my laptop. I like to find out where the SDK is and manually remove them to free up storage space on my laptop.
/Library/Developer/CoreSimulator/Profiles/Runtimes
In 2021 onwards, the device emulator files be found at ~/Library/Developer/CoreSimulator/Devices/, but this contains all simulators installed, which is currently 24 devices on my machine.
~/Library/Developer/CoreSimulator/Devices/$DEVICE_ID/data/Library
To find out your simulator device id:
Launch your simulator
xcrun simctl list 'devices' 'booted'
== Devices ==
-- iOS 14.4 --
iPhone 12 Pro (1320D7BA-FB2E-4E1C-834B-09BE5031054B) (Booted)
iPhone 12 Pro Max (91512DCC-DCEA-4ED4-9731-52D895399940) (Booted)
-- tvOS 14.3 --
-- watchOS 7.2 --
cd /Users/username/Library/Developer/CoreSimulator/Devices/91512DCC-DCEA-4ED4-9731-52D895399940/data would contain these files:
Extra: how to get a Application.app to run on simulator
For example, you could take this app and share it with someone else.
cd /Users/username/Library/Developer/CoreSimulator/Devices/emulator_id/data/Containers/Bundle/Application/
ls # This will list all the application directories, where each directory contains a `.app` file which will work on emulators.
You can drag this .app file onto another simulator and it will install.
You can use Disk Inventory X Application to spot large files in your mac. It is very useful to remove and free up some space.
Anyway, answering your question, the simulator files is in /Users/[Your user account name]/Library/Developer/Xcode/iOS
you should be able to find those unused file there
The best way to deal with this problem, is using an app called DaisyDisk, because XCode download new simulators every time iOS update, today you have iOS 10.3.x, even you delete those, XCode will download iOS 10.4.x or iOS 11 again in the future, you'd have to manually delete those files again.
Using DaisyDisk makes discovering these simulators, as well as deleting them fairly easy, I strongly recommend you to try it.
Bravo Apple for making 128G Mac users suffer :)
I've already downloaded the latest version (8.1 at this time) from Apple's direct download page.
While attempting to solve a similar issue on my own Macbook, I had found that the App Store will try to discover updates for apps it has indexed in Spotlight. This apparently includes the backup copy of xcode 7 it found on my Time Machine disk.
The asking of a second xcode download only occurred when my Time Machine disk was mounted (and when I did attempt to update it, it would always fail with permission errors). The fix for me was to tell Spotlight not to index my backup disk.
Hope that helps
Xcode 6.0 taking about 8 hours to archive a fairly large project! Any idea how to make the archiving project faster? The archiving just gets stuck for hours at compiling 42 of 42 source files. Also, sometimes Xcode just crashing after hours of attempting to archive.
I recently upgraded my Mac to a 2.3GHz quad-core Intel Core i7 processor and 16GB RAM, but unfortunately that didn't help. I want to understand if it is a PC configuration issue or an Xcode issue. In other words, if I upgrade to a Mac Pro, would that help?
Try to cancel archive, restart and try again.
If this doesn't work use other old method.
Build you project. Go to left pane-> product ->here you will see .app.
Show in finder .app file under product folder, drag and app in .app in iTunes.
There you will see you app in iTunes, again show in finder and you will see ipa file.