Xcode code sense and cmd+click to symbol doesn't work for 1 of my projects

前端 未结 9 826
醉话见心
醉话见心 2020-12-08 00:30

I\'ve been using Xcode 4.3.1 since it came out now and i\'ve worked on many different projects since. Everything has always worked fine until this 1 new project i\'m working

相关标签:
9条回答
  • 2020-12-08 00:57

    In my case I solved in this way.

    • Go to Project's propreties from Project navigator.
    • Build Phases
    • Add your *.m files in "Compile Sources"

    Now re-build.

    This could be happen, for instance, when your manually rename a class after its creations.

    Hope this help.

    0 讨论(0)
  • 2020-12-08 00:57

    For others if none of the above mentioned methods worked try this :

    Go to menu bar Xcode - > Preferences -> Locations -> Command Line Tools

    Choose proper (current) Xcode format here.

    0 讨论(0)
  • 2020-12-08 01:03

    Xcode 10.2.1 - simply closing Xcode entirely and reopening it solved it for me.

    0 讨论(0)
  • 2020-12-08 01:05

    With Xcode 8.2 I solved in this way:

    1. File > Workspace Settings
    2. Click over the little grey arrow above Advanced... Button (Derived Data)
    3. Select my project folder and delete it.

    Now in your project see if cmd+click works

    0 讨论(0)
  • 2020-12-08 01:05

    3 reasons this happens :

    1. Corrupt derived data : Solution : clean derived data folder.

    2. Corrupt project settings : Project.xcodeproject -> Right Click and clean the files mentioned in g_low's answer.

    3. File not a part of project target : Check if the file is a part of compile source and if not add it...

    0 讨论(0)
  • 2020-12-08 01:10

    I had this problem, restarted, quit Xcode, nothing happened. Switched to master branch, pulled, checkout into new branch. Problem Gone. I even went back to my previous branch and all was working. My only guess is that git messes up sometimes!

    0 讨论(0)
提交回复
热议问题