如何减少Xcode项目文件的大小 [英] How to reduce Xcode project file size
问题描述
因此,我正在尝试提交WWDC奖学金应用程序,但是文件大小限制为100mb,而我的当前限制为132mb.在过去的几个小时中,我花了一些时间缩小图像并进行压缩,但我只节省了约10mb ...
So I am trying to submit my WWDC scholarship app, however the file size limit is 100mb, and mine is currently 132mb. I have spent the past few hours reducing the size of the images, and compressing them, but I only saved about 10mb...
所以现在我想弄清楚什么占用了所有空间,并且可以删除哪些内容以使其小于100mb.
So now I am trying to figure out what is taking up all of the space, and what I can delete to get it under 100mb.
我注意到,当我进入'Developer'文件夹并右键单击我的项目并点击'Get info'时,它显示文件为132mb,但是如果我单独检查三个文件夹,它们只会添加长达约40mb.
I noticed that when I go into the 'Developer' folder and right click on my project and tap 'Get info', it shows that the file is 132mb, however if I go in and check the three folders individually they only add up to about 40mb.
如果我转到~/Library/Developer/DerivedData
,则该项目的文件约为250mb,那么其中是否有可以删除的内容?
If I go to ~/Library/Developer/DerivedData
then the file for this project is about 250mb, so is there something in there that can be deleted?
提前谢谢!
推荐答案
我终于找到了问题所在.我使用终端命令发现隐藏文件,发现文件夹中有一个.git文件,占用93mb.现在,我删除了文件,并将文件大小减小到37mb.
I finally found the problem. I used the terminal command to uncover hidden files, and found that there was a .git file in the folder which was taking up 93mb. I have now deleted the file and it brought down the size to 37mb.
这篇关于如何减少Xcode项目文件的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!