Xcode 4 no code completion

2019-03-12 11:58发布

I have been using Xcode 4 for 2 weeks and I noticed that I don't get code completion macros for if-else and switch statements.

Like this article describes: http://macdevelopertips.com/xcode/xcode-code-completion-macros.html

I had it working in the beginning, but it suddenly stopped.

1条回答
小情绪 Triste *
2楼-- · 2019-03-12 12:47

Have you tried deleting the project's derived data (which contains the project index used by Code Sense)?

To do so, open the organizer (Window -> Organizer), then the Projects tab. Select your project then hit the delete button next to the derived data path (to the right). Confirm and let it re-index your project.

查看更多
登录 后发表回答