Xcode 4 code sense is not working

后端 未结 13 1561
臣服心动
臣服心动 2020-11-30 19:38

I am running a \"old\" Xcode 3 project in Xcode 4 and code sense is not working for my own classes. I have tried following:

  • Clean/rebuild
  • Remove Der
13条回答
  •  北海茫月
    2020-11-30 19:54

    I've been doing this, and it's worked multiple times for me (after trying all of the above previously).

    Edit: Now I just hit space, backspace (the mac version) and rebuild... works nice. Then, remember to scroll (sometimes the colors don't show up until you scroll somewhere)

    1. Find your prefix file: "ProjectName_prefix.pch".
    2. Comment out some line. (basically change it)
    3. Build your project, doesn't matter if it fails or not.
    4. Uncomment it.
    5. Build again.

    I'm betting only step 2 (modify the prefix) is what does it, but these essentially get you back to running. Suddenly everything magically recolors itself and completes functions.

    Good luck if that doesn't fix it, perhaps try doing this to your dependency pch files (three20 or FB api's)

提交回复
热议问题