本来项目没有用pod管理第三方,后来为了解决SDWebImage弃用的警告:
SDWebImage:'initWithRequest:delegate:start Immediately:' is deprecated: first deprecated in iOS 9.0 - Use NSURLSession (see NSURLSession.h)
我就用pod管理SDWebImage,之后我删除了工程和文件夹下的SDWebImage,但是Xcode报了34个警告:
Libraries/SDWebImage/SDWebImageManager.m: warning: Missing file: /Users/TestApp/Libraries/SDWebImage/SDWebImageManager.m is missing from working copy
是因为没有删除干净,所以才出现这样的警告,为了解决这个问题我做了如下操作:
直接在终端下用svn命令删除missing的文件:(需要cd到提示你missing 文件的路径下)
svn delete nameOfMissingFile
或用Git(如果你用的是Git的话)
git rm -r nameOfMissingFile
这里我记录下我操作过程:
1.cd /Users/myMac (cd 不到sb文件夹里面的,因为它根本就不存在)
2.svn delete sb
3.svn delete sb
4.重启xcode,警告没了。
这个方法没试过:
删除当前目录下所有 svn 文件夹 :
find . -type d -name .svn | xargs rm -rf
1.打开终端
2.cd 到当前目录
3.输入 find . -type d -name .svn | xargs rm -rf 回车即可