You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 5, 2022. It is now read-only.
Summary
Running
swift xcode link-templateswhen homebrew is installed somewhere other than/usr/localwill cause the link to fail.In my case, my homebrew is installed in
~/.homebrewso theswift-xcode-link-templatesdoesn't find it.Expectation
swift-xcode-link-templateswould work even if homebrew was installed in custom location (using $BREW_HOME for example)Actual Result
swift-xcode-link-templatesuses hardcoded/usr/localfor the prefix.Workaround
Define
in
.bash_profile, andswift xcode link-templateswill find the homebrew dir.Potential Solution
Mention in README or Wiki about custom homebrew location explaning to define the workaround mentioned above.
Change the script to use or at least check $BREW_HOME is defined or not and use as
prefix.Define a different env variable for the link templates script specifically and mention in the README... something like
SWIFT_XCODE_TEMPLATES_HOMESorry for the long report, but hope this is some use! ^^