Xcode: Unable to open project… cannot be opened because the project file cannot be parsed

LINK ADDRESS:

http://stackoverflow.com/questions/361799/xcode-unable-to-open-project-cannot-be-opened-because-the-project-file-canno

I came across this problem and my senior told me about a solution i.e:

Right click on your projectname.xcodeproj file here projectname will be the name of your project. Now after right clicked select Show Packages Contents. After that open yourprojectname.pbxproj file in a text editor. Now search for the line containing <<<<<<< .mine,======= and >>>>>>> .r. For example in my case it looked liked this

<<<<<<< .mine
    9ADAAC6A15DCEF6A0019ACA8 .... in Resources */,
=======
    52FD7F3D15DCEAEF009E9322 ... in Resources */,
>>>>>>> .r269

Now remove those <<<<<<< .mine======= and >>>>>>> .r lines so it would look like this

    9ADAAC6A15DCEF6A0019ACA8/* BuyPriceBtn.png in Resources */,

   
52FD7F3D15DCEAEF009E9322/* discussionForm.zip in Resources */,

Now save and open your Xcode project and build it. Everything will be fine.

THE END !

原文地址:https://www.cnblogs.com/xingchen/p/2672948.html