This is an error when project.pbxproj for some reason could not load the project.
Solution 1 -) Make sure the project.pbxproj file in the project folder has no merge conflicts.
To do this, you can open it in a text editor. Then you need to look for interrupts such as;
<<<<<<< HEAD ======= >>>>>>> feature/...
After making sure that conflicts are resolved, you can go to source control and note the conflicts resolved in the file (if you want to fix the allowed merge)
Solution 2 -) This could also be caused by the absence of fancy brackets in the same file that you may be familiar with the JSON syntax. This usually happens due to improper conflict resolution.
Solution 3-) If none of the above solutions worked for you, you can make sure that you did not delete anything and did not damage the structure of the project file by looking at the difference between your last correct project file in the branches and the current one. In my case, I usually solve the problem by checking if I deleted these lines by mistake.
name = NameOfGroup; sourceTree = "<group>"; };
Solution 4 -) As a final solution, you can restore the project.pbxproj file from the branch in which it was not damaged. Then manually add links to recently added files to the project.
Yusuf Kamil AK
source share