xcode 解锁xcode文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20182676/
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
Unlock xcode files?
提问by Monergy
A few days ago I had an issue with my mac so I took it to the Genius bar at a local Apple store. They said the partitions failed on the hard drive and that it had to be reformatted. I use a program to automatically back up the system to an external server, so I wasn't concerned about loosing anything. They reformatted and I've been putting things back in place.
几天前,我的 mac 出现问题,所以我把它带到了当地 Apple 商店的 Genius 酒吧。他们说硬盘驱动器上的分区失败,必须重新格式化。我使用一个程序将系统自动备份到外部服务器,所以我不担心丢失任何东西。他们重新格式化,我一直在把东西放回原处。
What I have not been able to figure out.. I have a number of Xcode projects that I need to work on but when I try to open them in Xcode I get this.
我无法弄清楚的是..我有许多 Xcode 项目需要处理,但是当我尝试在 Xcode 中打开它们时,我得到了这个。
The file "project.xcworkspace" could not be unlocked. Could not add write permission to the file because you do not own it. Try modifying the permissions of the file in the Finder or Terminal.
无法解锁文件“project.xcworkspace”。无法向文件添加写入权限,因为您不拥有它。尝试在 Finder 或终端中修改文件的权限。
I tried unlocking the project, the main folder, and the p.list file in finder and making sure that I had read/write access but I'm still getting the error.
我尝试在 finder 中解锁项目、主文件夹和 p.list 文件,并确保我具有读/写访问权限,但我仍然收到错误消息。
When they reformatted the computer it did erase all of the keys and certificates I've been looking but I don't think the software backs up the credentials on the computer so I don't think I can access the old certificates and keys.
当他们重新格式化计算机时,它确实删除了我一直在寻找的所有密钥和证书,但我认为该软件不会备份计算机上的凭据,因此我认为我无法访问旧证书和密钥。
Has anyone run into this before? How do I unlock the file?
有没有人遇到过这个?如何解锁文件?
回答by Michael Dautermann
Remember the Project isn't just a standalone ".xcodeproj
" file but it's actually a folder that contains a number of hidden items.
请记住,项目不仅仅是一个独立的“ .xcodeproj
”文件,它实际上是一个包含许多隐藏项目的文件夹。
So when applying permissions, make certain to apply permissions to everyitem in your project folder.
因此,在应用权限时,请确保将权限应用于项目文件夹中的每个项目。
You can do this via the "Apply Permissions to Enclosed Items" popdown menu (available in the "Get Info" window), which looks like this:
您可以通过“对封闭项目应用权限”弹出菜单(在“获取信息”窗口中可用)执行此操作,如下所示:
回答by Vitaliy Javurek
In my case (react native) was a problem with node_modules. I just remove it and made yarn install
. Probably, they were installed with sudo
so xcode hasn't permissions.
在我的情况下(react native)是 node_modules 的问题。我只是将其删除并制作了yarn install
. 可能,他们是用sudo
xcode安装的,所以没有权限。
回答by Stephen Romero
If anyone is here using Ionic Cordova
with the same issue, Michael's answer works but you must go to the parent directory which is the ios folder
and the Apply to enclosed items
will show up there.
如果有人在这里使用Ionic Cordova
具有同样的问题,迈克尔的回答工作,但你必须去这是父目录ios folder
和Apply to enclosed items
将会出现在那里。