Skip to content

swift repl fails under swiftly #362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
heckj opened this issue May 19, 2025 · 0 comments
Open

swift repl fails under swiftly #362

heckj opened this issue May 19, 2025 · 0 comments

Comments

@heckj
Copy link
Member

heckj commented May 19, 2025

I have swiftly (1.0.1) installed, and tried to invoke swift repl. It immediately fails with a dyld error trying to locate the LLDB framework:

dyld[11468]: Library not loaded: @rpath/Python3.framework/Versions/3.9/Python3
  Referenced from: <9E37CB76-6346-3B15-9356-DEA26D289DD8> /Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/LLDB

The extended error shows all the various places it hoped and tried to find it:

  Reason: tried: '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/usr/lib/swift/Python3.framework/Versions/3.9/Python3' (no such file, not in dyld cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/../../../../../../../../Library/Frameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/../../../../../Developer/Library/Frameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/../../../../Developer/Library/Frameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/../../../../Frameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/../../../Python3.framework/Versions/3.9/Python3' (no such file), '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/../../../../../../usr/lib/swift/host/compiler/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/usr/bin/../../../SharedFrameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/usr/bin/../../System/Library/PrivateFrameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/usr/bin/../../Library/PrivateFrameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/usr/bin/../../../SharedFrameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/usr/bin/../../System/Library/PrivateFrameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/joeheck/Library/Developer/Toolchains/swift-6.1-RELEASE.xctoolchain/usr/bin/../../Library/PrivateFrameworks/Python3.framework/Versions/3.9/Python3' (no such file)

I don't have /Application/Xcode.app at all - having renamed my Xcodes by version to have multiple of them more easily.

If I disable swiftly, the built-in toolchain correctly finds and links the libraries and swift repl launches as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant