The project ‘project’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits... control conflicts

Viewed 11960

I am trying to merge master into my feature branch, and presented with this error. I have looked around the internet, and also tried to debug this issue myself including playing around with the .pbxproj file's conflicts (which showed none). All paths I have taken has not been fruitful. I am kindly asking for any direction I should take (i.e. which files to look at). Thank you in advance.

2 Answers

If you're using git to merge branches, this can happen when there are conflicts that aren't properly resolved. Open the .pbxproj and delete any conflict markers:

<<<<<<<
=======
>>>>>>>

enter image description hereIn my case it is because of a "\" in path attribute. I changed it to "/" and I used "plutil -lint project.pbxproj" to find the line number on which error was.

Related