3

I'm learning basics of Objective-C and using XCode for writing code. As you all know autocomplete option is perfect for new users that don't know (or remember) name of functions.

I have a problem with using autocomplete in XCode 6.3 couse its just.. not working - it is not showing anything or showing things that are not connected.

For example I just wrote simple few lines of code gusing NSMutableArray and NSEnumerator, when I'm trying to remind myself function/message 'nextObject' of NSEnumerator, XCode is not suggesting anything.

Here is a pic to show it: enter image description here

Am I doing sth wrong or there is a way to fix it?

thanks in advance!

wiwo
  • 721
  • 1
  • 13
  • 18
  • 1
    possible duplicate of [xcode code sense color/completion not working](http://stackoverflow.com/questions/1627033/xcode-code-sense-color-completion-not-working) – AdamPro13 Mar 24 '15 at 20:17
  • I'm having the same issues with xcode 6.3 – david72 Apr 17 '15 at 00:35

3 Answers3

0

It must be a temporary glitch. Happens to me almost all the time while Xcode is "indexing". You might be typing too fast and by the time Xcode gives indexing a break and looks for the auto-completion you might have types something for which there is no method (or something that you expected) Also, for custom classes & method, make sure you have included the respective header files.

PanxShaz
  • 760
  • 9
  • 12
0

It seems that autocomplete does not work when there is an error in the code.

david72
  • 7,151
  • 3
  • 37
  • 59
0

The reason for autoComplete not working can be anything. Do any one of the following to debug it

  1. Check if there are errors and if so try to solve it and then check autoComplete. If any error is present in any of the line then autoComplete will not work for below code. Try autoComplete above the error incase you want to check.
  2. If debugger does not throw any error then try commenting out the all lines and uncomment it from top to methods to recheck the autoComplete
  3. Quit Xcode and Reopen it
  4. Clear Derived data and then launch Xcode and check
ipraba
  • 16,485
  • 4
  • 59
  • 58