Reputation: 1
xcode problems:
I try to write a code and get "“UIViewController.h” is locked for editing and you may not be able to save your changes. Do you want to unlock it?" when I click unlock it's a no go because the computer isn't recognizing me as the owner.
This has never happened to me before. I'm using my own Macbook Pro running OS X ML. I'm the only user and set as Admin.
I've gone through Finder to change/double check permissions for every associated file and folder I can find (Setting myself to Read & Write), but I can't find the specific UIViewController.h file that xcode is referring to. Instead the closest thing I'm finding DetailViewController. I still did the project file and the three folders it's buried into.
I also went into terminal but pretty much anything I put in after the sudo chmod 777 command gets a "No such file or directory" even if I change the name, use forward slashes, put /* at the end or leave it out, etc.
Anyone know what I'm missing?
(Please note that I'm just starting my computer science journey. "For Dummies" instructions welcome!)
Upvotes: 0
Views: 1527
Reputation: 712
This looks like you attempted to edit a header file belonging to a system framework in iOS which are protected against unintentional changes like this, possibly because the assistant editor in Xcode (usually shown in the right-hand editor) showed this header at some point.
The only solution here is to revert your changes unless you know exactly why you are making changes in those files.
Upvotes: 1