简体   繁体   English

xcode 4.3.2 codeSense问题

[英]xcode 4.3.2 codeSense problems

I just updated to 4.3.2 and now I'm am having codeSense sleeping on me at every turn. 我刚刚更新到4.3.2,现在我正在让codeSense在每一个角落都在睡觉。 During coding I'm getting partial listings from enums, partial or no properties for classes, often no syntax highlighting, no errors for undeclared variables. 在编码期间,我从枚举中获得部分列表,部分或没有类的属性,通常没有语法突出显示,没有未声明的变量的错误。

If I build the project it raises the right warning/errors and links everything right. 如果我构建项目,它会引发正确的警告/错误并将所有内容链接起来。 So it actually can figure out if something is wrong, it just does not seem make an effort to do it while I'm writing code. 所以它实际上可以判断出是否有问题,在我编写代码时似乎并没有努力去做。

So angry right now. 现在很生气

I ran into a similar issue recently and I wound up Deleting the Derived Data for the project and the restarting Xcode. 我最近遇到了类似的问题,最后我删除了项目的衍生数据和重新启动的Xcode。

In Xcode go into the Organizer and under the Projects tab select your project from the left and then press delete next to Derived Data. 在Xcode中,进入管理器,在“项目”选项卡下,从左侧选择项目,然后按“派生数据”旁边的“删除”。 Then restart xcode and hopefully you'll be good to go. 然后重启xcode,希望你会好起来的。

I got that problem when using some c++ files on my iOS project... very anoying 我在iOS项目中使用一些c ++文件时遇到了这个问题...非常烦人

you can fix it easily like this: 你可以像这样轻松修复它:

on your project, go to "build settings" 在您的项目上,转到“构建设置”

"Build Options" “构建选项”

"Compiler for c/c++/objective-c"" change it from Apple LLVM compiler 3.1 “编译器用于c / c ++ / objective-c”“从Apple LLVM compiler 3.1更改它

to

LLVM GCC 4.2 Build LLVM GCC 4.2构建

and change it back again to 然后再改回来

LLVM compiler 3.1 LLVM编译器3.1

Build again 再建一次

now codeSense should work! 现在codeSense应该工作!

PS. PS。 no need to delete derived data... 无需删除派生数据......

;) ;)

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

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