Skip to content
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

error: the platform is not currently connected #28

Open
kalzoo opened this issue Jan 28, 2024 · 0 comments
Open

error: the platform is not currently connected #28

kalzoo opened this issue Jan 28, 2024 · 0 comments

Comments

@kalzoo
Copy link

kalzoo commented Jan 28, 2024

Error

➜  ~ rust-lldb /redacted/target/debug/deps/project-6ae0aa7bbbe04010
Current executable set to '/redacted/target/debug/deps/project-6ae0aa7bbbe04010' (arm64).
(lldb) run
error: the platform is not currently connected

(lldb) platform status
  Platform: remote-macosx
 Connected: no
  SDK Path: error: unable to locate SDK

(lldb) platform select host
  Platform: host
    Triple: x86_64-apple-macosx
OS Version: 14.2.1 (23C71)
  Hostname: 127.0.0.1
WorkingDir: /redacted
    Kernel: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000

(lldb) platform status
  Platform: remote-macosx
 Connected: no
  SDK Path: error: unable to locate SDK

Comparison: lldb

➜  ~ lldb /redacted/target/debug/deps/project-6ae0aa7bbbe04010     
(lldb) target create "/redacted/target/debug/deps/project-6ae0aa7bbbe04010"
Current executable set to '/redacted/target/debug/deps/project-6ae0aa7bbbe04010' (arm64).

(lldb) platform status
  Platform: host
    Triple: arm64-apple-macosx
OS Version: 14.2.1 (23C71)
  Hostname: 127.0.0.1
WorkingDir: /redacted
    Kernel: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000

Background

  1. on OSX 14.2.1 (23C71) on M1 (arm)
  2. lldb itself works as expected as shown above (run works out of the box), this problem only appears with rust-lldb
  3. This is a test binary
  4. I followed the readme step to set DYLD_FRAMEWORK_PATH
  5. This old, related issue in the LLVM project doesn't add any information

Version

➜  ~ rust-lldb --version                                                                                  
lldb-1500.0.200.58
Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)

➜  ~ lldb --version
lldb-1500.0.200.58
Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
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