-
Notifications
You must be signed in to change notification settings - Fork 98
dyld: Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib after homebrew install #197
Comments
+1 here, also fails for me |
My Xcode path is |
The underlying issue is SR-9038 I guess. Ideally, we want to link all Swift Syntax components statically so that we don't have a dependency on a specific Xcode version. |
I was pointed to this guide in |
This should be fixed by SwiftDocOrg/homebrew-formulae@af4cd47. @MattKiazyk Could you please try reinstalling to verify this?
|
I tried yesterday and it didn't work. Today It did work. Although got an error when running
but running again found it and installed it correctly. Thanks @mattt |
@MattKiazyk So glad to hear it! For posterity, here are updated commands to run for anyone else who may be getting that error message:
You may have also noticed that installation is now much faster thanks to the formula now having a bottle (e.g. pre-built binary). Again, apologies for any inconvenience I may have caused by botching the distribution of this release. I've learned a lot more about Homebrew, and have taken this as an opportunity to improve the process going forward. Hoping to write up what I've learned in a blog post soon. |
While related to #60 I'm just simply trying to run generate on the command line after install, so I thought I'd create a new ticket.
Steps:
brew install swiftdocorg/formulae/swift-doc
swift doc generate -f html ...
via command linereceived:
I did not receive this on beta-4 or earlier, granted I had been building it locally when I was making changes, so perhaps that stopped it from happening.
The workaround is to make sure I have my Xcode 12 named
Xcode.app
. and notXcode-12.0.1
. Once that occurs, and I set my command tools to that - it does not receive that error (albeit getting the #196 issue)The text was updated successfully, but these errors were encountered: