FlineDev/BartyCrouch

Support for none default Xcode install path

patricks opened this issue · 1 comments

Currently Xcode has to be installed unter /Applications/Xcode.app otherwise bartycrouch can't find some libraries. I have installed multiple Xcode versions via the Xcodes.app. The different versions are placed unter e.g. /Applications/Xcode-13.3.0.app/. In this case bartycrouch doesn't work.
It would be nice if bartycrouch could figure out the currently active version and use this one.

Hi @patricks, thank you for requesting this feature. FYI: BartyCrouch isn't expecting the the Xcode.app path anywhere directly, I have not written any code that I could adjust to make that happen inside this library. Moreover, BartyCrouch is using the https://github.com/apple/swift-syntax library from Apple to parse the enum file, and that library is somehow magically expecting an Xcode.app file because it's depending on some library shipped with Xcode.

A solution to that could be that we include that library (shipped with Xcode) explicitly with BartyCrouch and ship it. I have created a separate issue about that here: #248

As I can't do anything about what you requested in the title, I consider this a duplicate of #248, thus closing.
As for #248, I didn't have the time to look into that – if anyone is up to post a PR, I'd happily review it though.