-
Notifications
You must be signed in to change notification settings - Fork 98
dyld: Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib #60
Comments
Also related to SwiftDocOrg/SwiftSemantics#2 |
Closing as duplicate. |
Actually, I think there's a SwiftDoc-specific action to be taken for this. Until this is resolved in a future version of Xcode, we should at least document this as a Known Issue (similar to what we're doing in SwiftSemantics except, well... less awkwardly-written). |
@mattt, do you know if there is a workaround? |
@kean Last I checked, you can run |
😞 Woof. Thanks for giving that a try. Sorry that isn't a viable solution in the meantime. I'll work to get that documented as a known issue and keep an eye out for a long-term fix in Xcode. |
Is there any way I can run the executable and/or unit tests with the debugger attached in Xcode? |
Not that I know of, unfortunately. I've been getting by with Console.app crash logs and |
Apparently, the issue is that SwiftSyntax uses some private library named
So all you need to do is modify @rpath to make sure that the library is there when swift-doc is executed. Unfortunately, there doesn't seem to be any way to do that using Swift Package Manager. What you can do is change environment variables, like Naturally, there are multiple ways to set environment variables. Another option is to add it to |
This doesn't work for me unfortunately. Any updates on how to fix this? Trying to run the swiftdoc tests on a local fork. (I'm also getting the redefinition of module libxml2) |
@kean Thanks for sharing your workaround for this issue. I'm happy to report that I was able to get this working in Xcode 12.5 by using the latest OSS Toolchain. I just updated the README to document this with f2e3185. |
Environment
Xcode 11.4
Steps
swift-doc
from masterswift-doc
target or unit tests forSwiftDoc
libraryObserved result
dyld: Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib
Referenced from: /Users/kean/Library/Developer/Xcode/DerivedData/swift-doc-enlnpuwdeszizwbdykidcjodocbk/Build/Products/Debug/swift-doc
Reason: image not found
Related
realm/SwiftLint#3105
The text was updated successfully, but these errors were encountered: