Xcode删除文件警告missing file

来源:互联网 发布:怎么在淘宝卖游戏装备 编辑:程序博客网 时间:2024/04/30 08:21

在XCode开发中,删除工程中文件有可能会出现missing file 警告 这是由于使用了svn 或者git造成的


/img1

解决方法:

打开终端 在终端中输入项目文件路径 cd(空格),将项目文件夹拖到终端窗口,然后回车

输入命令行:

rm -rf `find . -type d -name .svn`

同理删除.git文件
输入命令行:

rm -rf `find . -type d -name .git`

终端运行效果:



显示mac隐藏文件
使用终端输入命令行:

defaults write com.apple.finder AppleShowAllFiles -bool true

隐藏文件
defaults write com.apple.finder AppleShowAllFiles -bool false