ATV
ATV

Reputation: 4516

Xcode 5 'forgetting' header files..?

I've got a fairly large project and frequently Xcode will fail to automatically expand paths to include files, i.e.

#include "UHelp

does not properly expand with e.g. the UHelper.h header file (usually recently added to the project).

This happens mostly for C++ files (I believe).

Is there any workaround for this issue..? After a lot of clean project/clean build folder/rebuild all the issue eventually resolves itself, but rather non-deterministically.

Upvotes: 0

Views: 76

Answers (2)

Zag
Zag

Reputation: 819

You can normally solve this problem by closing out the project and deleting the derived data

Upvotes: 1

justin
justin

Reputation: 104698

Retrying completion by closing (esc) the active completion can work in some cases.

My suspicion: Xcode is updating the index and may be ready when you attempt completion later.

Like compilation, C++ indexing takes more time than C or Objective-C.

Upvotes: 1

Related Questions