xcode 操作无法完成,因为发生了意外错误(错误代码 -8058)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23752283/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The operation can’t be completed because an unexpected error occurred (error code -8058)
提问by Nirav
Today morning, I tried to copy my Xcode project and pasted it in Backup Folder. I got this above issue.
今天早上,我尝试复制我的 Xcode 项目并将其粘贴到备份文件夹中。我得到了上面的问题。
The operation can't be completed because an unexpected error occurred (error code -8058)
操作无法完成,因为发生了意外错误(错误代码 -8058)
I believe that this project may have a folder with same name in a sub-folders. This is happening only in this folder. Other project's directory Copy/Paste is working fine. Any Help appreciated. Thanks.
我相信这个项目的子文件夹中可能有一个同名的文件夹。这仅在此文件夹中发生。其他项目的目录复制/粘贴工作正常。任何帮助表示赞赏。谢谢。
回答by ZeroOne
You can try following steps.
您可以尝试以下步骤。
Try to copy - paste or duplicate another folder. If you can copy paste it , than the problem is with that specific folder only.
Now try to copy contents of that folder one by one.
Some folders might me copied easily. One by one copying the folder , you will find the culprit. Check the contents and remove it.
尝试复制 - 粘贴或复制另一个文件夹。如果您可以复制粘贴它,那么问题仅在于该特定文件夹。
现在尝试一一复制该文件夹的内容。
有些文件夹可能我很容易复制。一一复制文件夹,你就会找到罪魁祸首。检查内容并将其删除。
Hope this helps.
希望这可以帮助。
回答by WallStProg
At least in my case, the error occurred because one of the "files" in the source was a Unix domain socket (on a Linux box running CentOS 6.5). (FYI, this is an IPC mechanism that uses a special type of file in the filesystem as a rendezvous point between two processes).
至少在我的情况下,发生错误是因为源中的“文件”之一是 Unix 域套接字(在运行 CentOS 6.5 的 Linux 机器上)。(仅供参考,这是一种 IPC 机制,它使用文件系统中的一种特殊类型的文件作为两个进程之间的集合点)。
Given that, I'm guessing that it's possible to get that error with other "special" file types also -- e.g., hard link.
鉴于此,我猜测其他“特殊”文件类型也可能出现该错误——例如,硬链接。
HTH...
哈...