删除xcode项目中不再使用的图片资源
2016-01-27 14:34
357 查看
1. 利用工具 下载地址 http://jeffhodnett.github.io/Unused/ 运行效果如下
2. 通过终端 执行 shell 命令
a. 第一步建立.sh 文件 如 unusedImage.sh
#!/bin/sh
PROJ=`find . -name '*.xib' -o -name '*.[mh]'`
for png in `find . -name '*.png'`
do
name=`basename $png`
if ! grep -qhs "$name" "$PROJ"; then
echo "$png is not referenced"
fi
done
b. 进入你要查找的工程目录下执行 这段 shell 脚本
sh unusedImage.sh
运行结果如下
2. 通过终端 执行 shell 命令
a. 第一步建立.sh 文件 如 unusedImage.sh
#!/bin/sh
PROJ=`find . -name '*.xib' -o -name '*.[mh]'`
for png in `find . -name '*.png'`
do
name=`basename $png`
if ! grep -qhs "$name" "$PROJ"; then
echo "$png is not referenced"
fi
done
b. 进入你要查找的工程目录下执行 这段 shell 脚本
sh unusedImage.sh
运行结果如下
相关文章推荐
- Java中的List按照元素的属性进行排序
- Axis2环境配置和样例测试
- 百度地图PC端判断用户是否在配送范围内
- Caused by: java.lang.ClassNotFoundException: org.apache.neethi.Policy
- ClassNotFound: edu.emory.mathcs.backport.java.util.concurrent.BlockingQueue
- Caused by: java.lang.ClassNotFoundException: javax.wsdl.xml.WSDLLocator
- Android自动弹出软键盘
- ClassNotFoundException: org.apache.ws.commons.schema.resolver.URIResolver
- Caused by: java.lang.ClassNotFoundException: org.apache.axiom.om.OMNode
- Lvs通俗易懂的总结
- USACO : Humble Numbers (丑数)
- Caused by: Axis2:The services.xml file cannot be found for the service
- 表格列固定
- 使用magento框架的时候,导入到头部导航栏具有.dropdown属性值的在点击后再点击页面上其他位置,该li标签隐藏了
- JSPatch
- 第二次实践作业
- 数据导入导出Oracle数据库
- Axis2常用部署方式
- 为最佳性能调优Nginx
- 解决:org.apache.axis2.AxisFault: Transport out has not been set