X $ C $的C 4:自动完成和放大器;跳转到在我的X code 3项目打破 [英] Xcode 4: Auto-complete & Jump to Definition broken in my Xcode 3 Project

查看:131
本文介绍了X $ C $的C 4:自动完成和放大器;跳转到在我的X code 3项目打破的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目是在X $ C $的C 3创建的,我打开它在X $ C $的C 4,注意以下内容:

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


  • 跳转到不再与我自己的符号作品(但是UI *甚至TT *符号都工作正常!)

  • 自动完成/'code意义上的是为X code 3,即坏,它表明一切

  • 我的项目类不类中的导航显示(同样,系统和Three20类的确出现!)

  • 'Jump to Definition' no longer works with my own symbols (However UI* and even TT* symbols do work fine!)
  • Auto-complete / 'Code sense' is as bad as Xcode 3, i.e., it suggests everything
  • My projects' classes do not show up in the class navigator (Again, system and Three20 classes do show up!)

然而,当创建一个 X $ C $的C 4项目,这些功能的不要似乎工作。不幸的是,唯一的解决方法似乎是重新创建项目并重新导入的一切。该项目是太大!

When creating a new Xcode 4 project however, these features do seem to work. Unfortunately the only workaround seems to be to recreate the project and re-import everything. This project is too large!

事情我已经试过:


  • 在主办方删除所得到的数据

  • 清洁项目

  • 安装了x code 4金师傅和最终版本

更新


  • 此bug已的的被以x code 4.0.1解决。

  • This bug has not been resolved in Xcode 4.0.1.

推荐答案

在我们的例子中的罪魁祸首竟然是老版本的three20库中。为了获得该项目的工作,我不得不

In our case the culprit turned out to be old version of the three20 libs. To get the project working I had to:


  1. 从项目中删除,以three20所有引用

  2. 按照 http://three20.info/的说明文章/ 2011-03-10-X code4-支持

  1. Remove all references to three20 from the project
  2. Follow the instructions at http://three20.info/article/2011-03-10-Xcode4-Support

只要安装了新的库中,x code4自动重建索引。 code完成后,跳转到现在甚至重构的所有工作。与X code工作的喜悦(TM)又回来了! :)

As soon as the new library was installed, xcode4 automatically reindexed. Code completion, jump to definition and even Refactor all work now. The Joy(tm) of working with Xcode is back! :)

在更一般的术语中,把它的头文件到任何BUILT_PRODUCT_DIR库很可能有类似的问题。

In more general terms, any library that puts it header files into BUILT_PRODUCT_DIR is likely to have similar issues.

这篇关于X $ C $的C 4:自动完成和放大器;跳转到在我的X code 3项目打破的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆