它基本上是一个两步或三步过程,它清理所有缓存资产的项目。
当然,如果有人使用这种技术,并且项目仍然不显示更新的资产,那么请添加一个答案!外面的人肯定有可能遇到需要我不包括的步骤的情况。
- 清洁您与转移项目 - Cmd的 - ķ
- 通过调用一个shell脚本(详情如下)删除导出的数据,在您的bash配置文件
- 卸载的应用从定义模拟器或设备。
- 对于某些类型的资产,可能还需要重置模拟器(在iPhone模拟器菜单下)
要调用的shell脚本下方,只需输入在这种情况下,“DDD”输入函数名( )到你的终端,假设它在你的bash配置文件中。如果您保存您的bash的个人资料,不要忘记更新你的终端环境,如果你保持它打开,与源命令:
source ~/.bash_profile
ddd() {
#Save the starting dir
startingDir=$PWD
#Go to the derivedData
cd ~/Library/Developer/Xcode/DerivedData
#Sometimes, 1 file remains, so loop until no files remain
numRemainingFiles=1
while [ $numRemainingFiles -gt 0 ]; do
#Delete the files, recursively
rm -rf *
#Update file count
numRemainingFiles=`ls | wc -l`
done
echo Done
#Go back to starting dir
cd $startingDir
}
我希望帮助,编码快乐!
看到这一个:http://iosdevcenters.blogspot.in/2015/12/how-to-delete-derived-data-and-clean.html –