When working with Xcode, we have a mandatory project settings file named: project.pbxproj
Now, this file contains numerous important details, such as: Directory structure, file hierarchy, included-file references, development IDs, formatting, build paths and much, much more. It has many dynamic parts and is ever changing.
However, there is a specific substring within this file that makes collaborating via git especially tedious, that is:
DEVELOPMENT_TEAM = XXXXXXXXXX;
Not only does this line contain a private ID number, but it also requires that the value be reset to your own provisioning identifier – however many times that it's mentioned throughout the file – each time you wish to pull and build the project. Furthermore, since these properties are set near the bottom of the file, every little change made to the project – whether that be adding a new file, setting a new property or rearranging directory structure – the line number for these substrings will always change.
Is there any way to ignore all lines, within this file, that contain this substring pattern?