alloy/cocoapods — Issue #25: Xcode's syntax highlighting and code completion stops working
Author: kommen
Created: 2011-10-14 09:38:32+00:00
State: open

Under some circumstances Xcodes syntax highlighting and code completion stops working in files where header files from pod libraries are included.

I suspect this is has something to do with cocoapods `USER_HEADER_SEARCH_PATHS` in the `Pods.xcconfig` file, making Xcode search for the headers in the `BUILT_PRODUCTS_DIR`.
When building the initial index, the header files are not there yet, because the Pods target hasn't been built.

A workaround which made both syntax highlight and code completion work for me was to ensure that the Pods target is built (e.g building it as a dependency for another target or adding a separate Pods scheme) and the find the workspaces folder in Xcodes `Derived Data` folder and delete the *only* `Index` folder there, to force Xcode to rebuild the index.