Is there any way to disable write-access to source code from within Xcode?

Posted by Kapil Kapre on Programmers See other posts from Programmers or by Kapil Kapre
Published on 2012-10-06T09:50:21Z Indexed on 2012/10/06 15:51 UTC
Read the original article Hit count: 431

Filed under:

Is there any easy solution to prevent Xcode from writing to source files in a project? I want to edit source files externally and only use Xcode for debugging and so I want to prevent any accidental modifications getting saved via xcode. (Obviously I want Xcode to pickup external changes to files when I build/debug)

One possible solution that I thought of was to enable app sandbox entitlements on xcode and manually maintain a list of directories that it should not write to. Is this feasible? Any other ideas?

On the sandboxing thing, I'm not sure if Xcode is disqualified as per Apple's Sandboxing Requirements.

© Programmers or respective owner

Related posts about xcode