Skip to content

swift repl fails under swiftly #362

@heckj

Description

@heckj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions