Skip to content

Github Desktop for Mac doesn't run git hooks (pre-commit) #24072

Discussion options

You must be logged in to vote

False alarm. I got an error when I ran my pre-commit script manually from the terminal saying dyld: Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib and that pointed to my Xcode being configured incorrectly (I’m doing iOS development). Turned out since I had switched to a beta version of Xcode, it couldn’t find the Xcode command line tools that were being referenced within my pre-commit script and it was aborting when it hit that error. My problems were solved by pointing back to the official release of Xcode and pointing my xcode-select command line tools to that version. I did this with the following command:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment