Help! Something happened to my xcodeproj file and now I can't compile anymore!

Discussion in 'iOS Programming' started by cstromme, Jan 12, 2010.

  1. cstromme macrumors regular

    Joined:
    Feb 26, 2007
    #1
    So I've been using my iDisk for the last year or so to store my obj-c projects on as I move a lot between two computers, but today it seems like something happened to my xcodeproj file.

    I was working on a project and suddenly XCode started telling me the xcodeproj file on the disk was different from the one in XCode, and that it couldn't save the file. After trying to save several times I quit XCode and started it up again. The project loads fine, but whenever I try to compile I get an error wherever I try to declare a variable of one of my own classes.

    The error is:
    error: expected specifier-qualifier-list before 'PageChanger'

    I've tried cleaning, but that doesn't seem to help.

    So what might have happened here? And how do I fix it?
     
  2. LennyX macrumors newbie

    Joined:
    Dec 29, 2007
    #2
    No idea how to fix it, sorry. If you've still got all the source files it shouldn't be too big of a deal to create a new project and put all your classes back in though.

    And I'd definitely recommend using Dropbox instead of iDisk. It's way faster and I've found it syncs Xcode projects a lot better.
     
  3. cstromme thread starter macrumors regular

    Joined:
    Feb 26, 2007
    #3
    Basically it's like my project doesn't know that my classes exist when I try to compile. I tried removing the classes and dragging the files back in to re-add them, but I still get the same errors.
     

Share This Page