What worked for was to set permissions (the accepted answer), then copy file to a Desktop, for example. There I was able to edit it using Xcode. Then I copied the file back using cp
command and that's it.
Full command (assuming you are in the directory):
sudo cp /Users/<username>/Desktop/SDKSettings.plist SDKSettings.plist