Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7843039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:27:22+00:00 2026-06-02T16:27:22+00:00

I am having a rather strange issue in Xcode on one of my projects.

  • 0

I am having a rather strange issue in Xcode on one of my projects.

When I start to write my code, I am used to the auto-completion suggesting numerous entries for me. For some reason, since yesterday, this has stopped working. I now get strange auto-completion entries such as “and”, “the”, “Andy”, “MyCompanyName” etc.

This never happened before and so I am confused as to why it has occurred now, and only on one of my projects. I searched this site for quite some time for any fixes and I’ve attempted to clean Derived Data, quit Xcode, delete the workspace and user files from the Xcode project and restart, but after doing so, the auto-complete works for a while, then breaks again after about 30 seconds of coding.

I can sometimes see auto-complete solutions, but just plain text (no class indicators), then other times it stops working entirely.

Has anybody else experienced anything like this and could provide some solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:27:23+00:00Added an answer on June 2, 2026 at 4:27 pm

    I suffered for a long time with a project that kept losing auto-completion and syntax highlighting. Deleteing the Derived Data folder and restarting Xcode would fix it temporarily, and eventually that almost became muscle memory. My problem seemed to be exacerbated by using a workspace that contained multiple projects, many of which were dependant on each other. It turns out the problem was with the clang indexer. The project would compile cleanly, but looking at the output from the indexer it was littered with errors. Fixing ALL these resolved my problems.

    BEFORE DOING ANYTHING: make sure ALL the targets in ALL the projects in your Workspace compile cleanly. That’s without ANY warnings. This was a big failure on my part – I had old targets that just didn’t compile cleanly. Some of these were unused and could be deleted, others were non-ARC that used modules in targets that had been converted to ARC (converted those targets too), and some just needed the code fixing.

    Once you’ve resolved ALL those problems, the first thing we need to know is where the indexer is failing, by doing a complete index of your project.

    • First, Make sure Xcode is closed, then turn up the indexer warning
      message level by entering in the Terminal:

       defaults write com.apple.dt.Xcode IDEIndexingClangInvocationLogLevel 3
      
    • Then find the Derived Data folder for your project/workspace (probably ~/Library/Developer/Xcode/DerivedData/your project name-some gibberish), and delete it (but keep the Derived Data folder open because you’ll probably have to go back and do this a few times.

    • Next, open the Console app and click Clear Display, and set the filter to “IDE” to only show the messages we’re interested in.

    • Finally, open Xcode and the project/workspace that’s causing your problems, and you’ll see the console start to fill up with messages.

    • To look for errors, change the Console filter to “error:” – our aim is to reduce these to zero.

    • The majority of errors I found were missing header files. Xcode itself seems to be smarter than the indexer. It seems to be able to find and include header files from other projects that the indexer can’t.

    • So, anywhere you see “fatal error: ‘somefile.h’ file not found“, make sure you add the path of that file to the User Header Search Paths in the target’s build settings. The best way I’ve found to do this is to double click on the field to get the popup, and drag the folder from the finder into it. This adds a new entry, but assuming it’s in the same workspace, it adds a relative file path (this is important in case you move your workspace folder in the future). If you’ve got multiple targets for the same project, you can set the search path at the project rather than target level, and set the target search paths to $(inherited).

    • You might have similar problems with Libraries or Frameworks – again, update the appropriate search path.

    • Once your fixed some errors, close Xcode, clear the console, delete the project’s Derived Data, open Xcode and let it index again.

    • Repeat until all your errors are gone.

    Once you’re in this good place, code autocomplete and syntax highlighting should work like a charm 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a rather strange problem with zsh. When I start up my shell,
I'm having a rather strange issue with the Google Maps javascript API and HTML5
I'm having a rather odd issue where the menu for an activity works totally
I'm having a strange issue with my Javascript in Firefox 3.0.x. In Firefox 3.0.12,
I am having a rather strange problem, I deployed 2 .NET applications on my
I'm having a rather strange problem with MySQL. Trying to create a procedure to
I'm having what seems to be a rather strange error when attempting to encode
Today I am having a rather strange problem with my date range. $oBeginDate =
So, I'm trying to dabble with the multi_index_container and am having a rather strange
I'm currently having a strange issue whereby all browsers except from Google Chrome are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.