Xcode 7.3 Failed to load project

I made some changes in functionality throughout the day. After that I closed the workspace and tried to open it again, this shows Couldn't load project .

Screenshothot

I tried all of the solutions available on https://stackoverflow.com/a/12625/16/16/12/25/12/25 ... but none worked. I am using cocoa in a project.

Any other fix?

+13
source share
5 answers

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.

+14
source share

I have the same problem. I closed the project and reopened it. He worked for me.

+19
source share

I had the same problem.

  • At first I ran pod repo update . It takes some time for the End.
  • Then I ran pod install .
  • Open the workspace and the problem should be fixed.
+13
source share

This may be a problem with the project.pbxproj file.

enter image description here

I solved this problem with these tools:

https://github.com/Karumi/Kin

After installation, I performed a check:

enter image description here

See the error was an unsuccessful combination of this error in project.pbxproj:

ERROR: line 451: 2 missing ';' in 'D062826E1DE2F43300818438'

Since Xcode does not provide much information about this error, I advise you to check your .pbxproj to make sure that this possibility is excluded

+6
source share

There was a conflict in my .pbxproj as soon as I deleted the conflict and it will work!

+1
source share

All Articles