简体   繁体   English

仅以@开头的代码完成/代码感知在Xcode 6中不起作用

[英]Only code completion / code sense which starts with @ is not working in Xcode 6

Suddenly, only code completion which starts with @ has stopped working in all Xcode projects in Xcode 6. 突然,只有以@开头的代码完成才停止在Xcode 6中的所有Xcode项目中工作。

在此处输入图片说明

About a week ago, after upgrading to Xcode 6.0.1, I tried to use Debug View Hierarchy, then not only Xcode but also my entire Mac system crashed and it restarted. 大约一周前,在升级到Xcode 6.0.1之后,我尝试使用Debug View Hierarchy,然后不仅Xcode崩溃,而且整个Mac系统都崩溃了,然后重新启动。 Since then, if I remember correctly, The problem has started to happen. 从那以后,如果我没记错的话,问题就开始发生了。

Most code completions are working correctly, like NSLog(). 大多数代码补全都可以正常工作,例如NSLog()。

在此处输入图片说明

But, only code completion which starts with @, like @"string", @[array, ...], hasn't been working in all of my Xcode projects. 但是,并非所有以X开头的代码完成(例如@“ string”,@ [array,...])都不能在我的所有Xcode项目中使用。 When I type @, I can't see an automatic code completion popup window for NSString, id, NSArray, and so on. 键入@时,看不到NSString,id,NSArray等的自动代码完成弹出窗口。 The code completion popup window automatically doesn't show up, but when I type the esc key, it shows up. 代码完成弹出窗口不会自动显示,但是当我键入esc键时,它会显示出来。

在此处输入图片说明

  • I tried deleting Derived Data from Organizer in Xcode, but It didn't solve the issue. 我尝试从Xcode中的Organizer中删除“派生数据”,但是并不能解决问题。
  • I updated Xcode to 6.1 just today, but it didn't work. 就在今天,我将Xcode更新到6.1,但是没有用。
  • I tried re-installing Xcode 6.1 with deleting all files at ~/Library/Developer/Xcode, and it didn't work either. 我尝试重新安装Xcode 6.1,并删除了〜/ Library / Developer / Xcode中的所有文件,但是它也不起作用。

Even in a new Xcode project, there's the same issue. 即使在新的Xcode项目中,也存在相同的问题。 One of the weirdest points is that this code completion issue happens in my all Xcode projects regardless of when they are created. 最奇怪的一点之一是,无论我何时创建Xcode项目,该代码完成问题都会发生。 Also, the code completion for only @ doesn't work. 另外,仅@的代码完成不起作用。

The code completion for @ is used very often. @的代码补全经常使用。 It's a sooo pain in the neck... It would be great if you could give me any advice to solve this issue. 脖子上太痛了……如果您能给我任何解决此问题的建议,那将是非常不错的。 Thanks! 谢谢!

I believe Apple has changed the behavior of this. 我相信苹果已经改变了这种行为。 So I guess get used to it. 所以我想习惯了。

I know it sucks, but at least you can change it to something else. 我知道它很烂,但是至少您可以将其更改为其他名称。

If someone knows how to get it back to like in Xcode 5 that would be awesome! 如果有人知道如何将其恢复为Xcode 5中的样子,那将非常棒!

改变这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM