简体   繁体   English

如何解锁swift文件(Xcode)?

[英]How to unlock swift file (Xcode)?

When I try to write something in the assisted editor in Xcode 7.1, there's a error message that I can't change the code (can't unlock it), because I don't own it!当我尝试在 Xcode 7.1 中的辅助编辑器中编写某些内容时,会出现一条错误消息,提示我无法更改代码(无法解锁),因为我不拥有它! Do you know how to let me have access to it?你知道如何让我访问它吗?

I solved my problem by doing this我通过这样做解决了我的问题

  1. Go up to the folder containing the project in your Finder.前往 Finder 中包含该项目的文件夹。

  2. Right Click > Get Info右键单击 > 获取信息

  3. Go to the bottom of the Info pane, and click the little lock, type in your password when prompted.转到“信息”窗格的底部,然后单击小锁,在出现提示时输入您的密码。

  4. Then, change permissions for yourself to read+write.然后,将自己的权限更改为读+写。

  5. Click the little gear below, and apply to all enclosed items.单击下面的小齿轮,并应用于所有封闭的项目。

Close the lock once you are finished!完成后关闭锁!

OR或者

Change the value of "Compiler for C/C++/Objective-C" to Default Compiler under BUILD OPTIONS在 BUILD OPTIONS 下将“Compiler for C/C++/Objective-C”的值改为 Default Compiler

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM