Xcode autocomplete and jump to def for the package manager project


(Valentin Radu) #1

Hello all,

I’ve cloned the package manager repo and as I was going through it I saw that for the default Xcode project (the one in the Support dir) autocompletion and jump to def are not available for Swift.
Does anyone have an idea on how to fix this? I know there’s a hackish way of doing it: adding another dummy target and therefore forcing Xcode to index the files added to that target. Is there another cleaner solution? i suppose there must be a way since probably the core team used this features while developing the package manager (?)

– Valentin Radu


(Max Howell) #2

Hello all,

I’ve cloned the package manager repo and as I was going through it I saw that for the default Xcode project (the one in the Support dir) autocompletion and jump to def are not available for Swift.
Does anyone have an idea on how to fix this? I know there’s a hackish way of doing it: adding another dummy target and therefore forcing Xcode to index the files added to that target. Is there another cleaner solution? i suppose there must be a way since probably the core team used this features while developing the package manager (?)

I’m sorry to say, there is no cleaner way. Xcode will only index yellow folders. On the positive side, I have found it is good for improving one’s memory of the stdlib.

Max