I have to make some UITests for an iOS app and this is how it goes: I use XCode ide and xctest library. I write my tests, they pass and everyone is happy. When a new version of the app gets released, I have to install it manualy and run my tests again.
So, I came up with a new idea. What if I make a new branch (a copy of the release branch) and I add my tests there. This way, every time a new release is coming, I can just merge the release branch with my test branch. Like so, when I run a test, the new version of the app will be installed.
It works. The problem is that a new release has come. And poof, merge conflict on the .xpbproj file. The problem is that I added test classes so the .xpbproj file changed. And the developers added new files too, so the file has changed.
It doesn't seem right to manually resolve the conflict. A .gitattributes merge union doesn't resolve it for me, the project cannot be opened because it is "damaged".
My question is: Have you ever encountered this problem and how you worked it out?