OC报错,after command failed: Directory not empty

 Directory not empty这个错误经常出现,出现的原因也很多,今天主要记录一下楼主自己碰到的这种情况.

全部错误提示:

error: couldn't remove ‘路径/app-fzyywcmxddbjxecaywhttieikzuq/Build/Products/Release-iphoneos/app.app/EaseMob.bundle' after command failed: Directory not empty

 

从错误提示中可以看出问题出在EaseMob.bundle上,这是环信的一个资源文件;然后我找到Build Phases --->Copy Bundle Resources ,然后在右上角的搜索栏中搜索EaseMob.bundle,果然发现项目中有两个EaseMob.bundle,虽然不记得导入的时候怎么弄进去两个,然后直接删掉一个clean and run 就行了

 

 

报错提示:You don’t have permission.

那是因为项目里面导入了第三方的文件,里面也有plist文件,删掉plist文件就行了

原文地址:https://www.cnblogs.com/110-913-1025/p/7379785.html