• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problems with Indexing in Xcode 8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with Indexing in Xcode 8


  • Subject: Problems with Indexing in Xcode 8
  • From: Simon Wilson <email@hidden>
  • Date: Fri, 04 Nov 2016 11:11:20 +0100

I have a framework project that builds without errors or warnings, but whenever I open a source code file I get an error displayed next to the first #import statement for a framework dependency. The error text is:

‘<MyFramework/MyFramework.h>’ file not found’

As long as no source files are open then no errors are displayed after a build. Opening any source file with such an #import statement results in the error being displayed after about 1 second.

Some observations:

- Any files that exhibit this error have incorrect syntax highlighting. This leads me to believe that the problem is related to indexing.

- The error is not specific to one referenced framework. I can change the order of the #imported framework headers and the error is always displayed next to the first #import.

- There is nothing wrong with the #imported frameworks. The headers exist and are used by a number of other projects/workspaces without problems.

- The framework dependencies are 1) added to the project as file references to their .xcodeproj files, and 2) added to “Linked Frameworks and Libraries” in the target’s “General” tab.

- I created the Xcode project that is referencing the frameworks in Xcode 8. I updated to Xcode 8.1 but the problem remains. I have not changed any build settings apart from changing the name of the build product.

- The project did not initially generate these issues. It only started after a couple of hours working with the project.

- Deleting the project and starting over solves the issue. But these issues re-appeared in the new project, again after a period of time.

- I initially had the issue on 10.11 but have since upgraded to 10.12 and still get the errors.

I have tried 1) cleaning and re-building, 2) deleting the project’s files in DerivedData, 3) deleting the module cache, 4) restarting Xcode, and 5) even rebooting. Nothing fixes the issue. Once a project starts exhibiting this behavior I can’t get rid of it.

This is driving me nuts! Does anyone have any suggestions?

Cheers,
Simon


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Problems with Indexing in Xcode 8
      • From: Jens Alfke <email@hidden>
  • Prev by Date: FBSOpenApplicationServiceErrorDomain errors
  • Next by Date: Re: Problems with Indexing in Xcode 8
  • Previous by thread: Re: FBSOpenApplicationServiceErrorDomain errors
  • Next by thread: Re: Problems with Indexing in Xcode 8
  • Index(es):
    • Date
    • Thread