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

前端 未结 15 968
时光说笑
时光说笑 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:22

    I don't know if it helps someone, but I got the code indexing of my C++ project broken when I switched to Xcode 4. I haven't switched to Lion so I still have the 4.02 version. When creating the project in Xcode I would use the external build option, this didn't add the HEADER_SEARCH_PATHS correctly to the project. I found that using:

       cmake -G Xcode . 
    

    to generate the xcode project, sets this variable correctly and enables the indexing of the entire project.

提交回复
热议问题