Xcode code sense and cmd+click to symbol doesn'

2019-01-16 16:05发布

I've been using Xcode 4.3.1 since it came out now and i've worked on many different projects since. Everything has always worked fine until this 1 new project i'm working on.

The code completion/code sense never finds anything or when i 'Command+Click' a variable or class normally it would jump to that but now i'm just getting 'Symbol Not Found'.

If I open one of my older project while this bad one is open, the old ones still work for code sense and the new one doesn't.

My partner is working on the same project, we both get the files from our repository and the code sense works on his machine for this project...just not mine.

So i'm a little confused as to how to fix this..any ideas?!

Thanks!

8条回答
家丑人穷心不美
2楼-- · 2019-01-16 16:55

In my case, .m file was somehow located in en.lproj directory and that prevented it from being shown properly with syntax coloring and intellisense on.

In the File inspector side panel check if there is something checked in Localization tab.

查看更多
Ridiculous、
3楼-- · 2019-01-16 16:56

Try this:

Open the organizer. Close your project in Xcode (leaving Xcode and the organizer running). In the organizer, in projects, click on the Delete button next to Derived Data. Quit Xcode.

Find your Xcode project via the finder. Rightclick and "Show Package Contents". Delete project.xcworkspace and xcuserdata folder.

Open up Xcode again and see if that works for you.

查看更多
登录 后发表回答