Xcode 4: Auto-complete & Jump to Definition broken in my Xcode 3 Project

前端 未结 15 964
时光说笑
时光说笑 2021-01-30 09:11

My project was created in Xcode 3, I\'m opening it in Xcode 4 and notice the following:

  • \'Jump to Definition\' no longer works with my own symbols
相关标签:
15条回答
  • 2021-01-30 09:35

    I fixed the problem by removing derived data in th Organizer, running touch MyProject.xcodeproj/project.pbxproj and re-opening the project. After re-opening it, it started indexing and then it was working again.

    0 讨论(0)
  • 2021-01-30 09:37

    This just worked for me:

    • Open your Xcode project.
    • Open up a command prompt in your project directory and type:

      touch MyProject.xcodeproj/project.pbxproj

    • Watch as syntax coloring and other stuff gets fixed before your eyes.

    • Reopen your project (or adjust a project setting) if your project schemes get reset to "My Mac" for iOS projects.
    0 讨论(0)
  • 2021-01-30 09:40

    With regard to "Jump to Definition", try clicking on the Scheme selection button (the one near the top right of the window that displays a list of builds, devices, and simulators) then click back in the code editor and try Command-click or "Jump to Definition" again.

    I've recently found that whenever "Jump to Definition" stops working I can do this and it works again for awhile. It's not a fix but has been a useful workaround.

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