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

前端 未结 21 2216
有刺的猬
有刺的猬 2020-12-04 08:34

I have been working for a while to create an iPhone app. Today when my battery was low, I was working and constantly saving my source files then the power went out...

<
21条回答
  •  眼角桃花
    2020-12-04 08:57

    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 your projectname.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.

提交回复
热议问题