2

enter image description here

See, I want to lock my code, How do this?

neer
  • 4,031
  • 6
  • 20
  • 34
碧野MAX
  • 31
  • 1
  • 6

2 Answers2

6

It's same with Xcode 7 or early. * Select your file and find the Full Path in Xcode, then open it in Finder.

enter image description here

  • Get Info and checked the Locked.

enter image description here

  • Last, check the file in Xcode.
LuHsu152
  • 61
  • 4
2

To lock file is possible with the Finder, it is much more troublesome when you need to lock multiple files. The long way now involves right clicking the file in the Project Navigator and selecting Show In Finder. Using Get Info (Cmd-I) will allow you to select Locked. When you do this, the lock symbol will appear in the top-right corner of the source editor, which you can click to Unlock the file.

riddhi
  • 316
  • 2
  • 16