SolaWing / xcode-build-server

a build server protocol implementation for integrate xcode with sourcekit-lsp
MIT License
283 stars 16 forks source link

Make lookup in `.compile` file case-insensitive #7

Closed hristost closed 2 years ago

hristost commented 2 years ago

I had an Xcode project where the case of filenames displayed in Xcode was not consistent with the case of files on disk (e.g. MyClass.swift vs myclass.swift). Techincally, these filenames are the same since MacOS's file system is case-insensitive. However, because of these discrepancies, xcode-build-server was not able to retrieve the correct compile command for all files.

SolaWing commented 2 years ago

Thank you for PR. this patch seems only change the filename index key, won't actually affect the filename. so i merge it.

but inconsistence filename case may cause various bugs, I still suggest you fixing this issue by rename to the consistence name

you can remove and re-add the file in xcode, or mv to bak name then mv back to the consistent name.