Project Not Opening Correctly

Discussion in 'iOS Programming' started by RagingGoat, Jun 24, 2013.

  1. RagingGoat macrumors 6502

    Joined:
    Jun 21, 2010
    #1
    I meant to open an old version of my project in xcode 5 and made a change to a xib file then realized that I had opened the newest version of my project by mistake. I then couldn't open the project in xcode 4.6.3 so I went back into xcode 5 opened the xib in IB and under Interface Builder Document, changed Opens in from Xcode 5.0 to Xcode 4.6. Then every time I tried to open the project in 4.6.3, xcode would crash before the project could open.

    I made a copy of the project folder and now, even though all of the files are in the old project folder, none of them show in xcode 4.6 or 5 when I open the project. None of my images, class files, or anything are showing in xcode even though they are all still in the project folder.

    Any ideas?
     
  2. Duncan C macrumors 6502a

    Duncan C

    Joined:
    Jan 21, 2008
    Location:
    Northern Virginia
    #2

    It sounds to me as though some or all of the files in your project got set up using absolute paths instead of relative paths. You almost always want all your project files to use relative paths (relative to the Xcode project file) so if you move the project folder everything still works.

    I would suggest selecting your missing files one at a time in the file navigator, right clicking on them, selecting "show file inspector" and looking at the location entry in the identity and type section. You want your location to be "Relative" or "Relative to group."
     
  3. RagingGoat thread starter macrumors 6502

    Joined:
    Jun 21, 2010
    #3
    They don't show up in xcode at all. They are all in the folder with the xcodeproj file like they always have been but they don't come up in xcode when I open the project. I ended up just copying all of my files into a new project and got everything set up again and everything seems ok now.
     
  4. ahan.tm macrumors regular

    Joined:
    Jun 26, 2011
    Location:
    Florida
    #4
    When I started using Xcode 5, I had to "upgrade" my xibs.
     

Share This Page