Hi,
I have a recurrent problem with an Xcode workspace that I cannot figure out how to solve:
When I command-click a symbol (or press ctrl-cmd-J) to find its definition, and when that definition is in a header file belonging to a custom static library, Xcode opens a header located in the derivedData folder rather than in the project's source codes. The exact location of this file is not in the main 'Build' folder but rather in a folder that seems dedicated to indexing:
derivedData/myProject/Index.noIndex/Build/Products/Debug/Include/theHeader.h
Consequently the file opened by Xcode is uneditable, I have to close it and reopen the source using another method. Even when the correct header is already opened, and I try again, Xcode reopens the wrong file so that it's opened twice with different paths.
In the config file of the main application project, I reference the sources of these static libraries like this:
HEADER_SEARCH_PATHS = ${SRCROOT}/myLibrary1/Sources ${SRCROOT}/myLibrary2/Sources ${SRCROOT}/myLibrary3/Sources
However, removing this doesn't fix the issue and I don't see any other related-settings.
Any idea to fix this annoying issue would be greatly appreciated, thanks!