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

[SR-12127] When trying to debug Package in Xcode, debugger from selected toolchain is not used #4611

Closed
ematejska mannequin opened this issue Feb 5, 2020 · 5 comments
Labels

Comments

@ematejska
Copy link
Mannequin

ematejska mannequin commented Feb 5, 2020

Previous ID SR-12127
Radar rdar://problem/59174187
Original Reporter @ematejska
Type Bug
Status Closed
Resolution Invalid
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: e18ab3209e8a97f87421378da8c5552a

Issue Description:

Development Environment:
Xcode 11.3.1
Toolchain from https://swift.org/builds/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2020-01-31-a/swift-DEVELOPMENT-SNAPSHOT-2020-01-31-a-osx.pkg

Reproduce steps:

  1. Launch Xcode and select the the toolchain "Swift Development Snapshot 2020-01-31 (a)" by going to Xcode->Toolchains.
  2. File->New->Swift Package. Name it anything you want. We just need a package project.
  3. Go to the unit tests tab and set a breakpoint on "func testExample()" in the unit tests.
  4. Run the testExample unit test and hit the breakpoint.

Notice that the lldb prompt has the error:
"Library/Developer/Xcode/DerivedData/bla-dcldcbjsrpublmexgadvggxiyxcf/Build/Products/Debug/blaTests.xctest/Contents/MacOS/blaTests: Cannot load Swift type information; AST validation error in "blaTests": The module file format is too new to be used by this version of the debugger.AST validation error in "bla": The module file format is too new to be used by this version of the debugger.AST validation error in "bla": The module file format is too new to be used by this version of the debugger."

Running "version" at the lldb prompt in Xcode prints out:
(lldb) version
lldb-1100.0.30.12
Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)

However, running "version" at the lldb prompt from /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2020-01-31-a.xctoolchain/usr/bin/lldb prints out:
(lldb) version
lldb version 7.0.0 (git@github.com:apple/llvm-project.git revision 59a141eebb068ccd83f25da447669259a3731e12)
Apple Swift version 5.2-dev (Swift a0fbeb9179)

Seems like the toolchain lldb is not being used when debugging the package in Xcode.

@ankitspd
Copy link
Member

ankitspd commented Feb 5, 2020

@swift-ci create

@ankitspd
Copy link
Member

ankitspd commented Feb 5, 2020

This is something completely on the Xcode side so closing this JIRA.

@ematejska
Copy link
Mannequin Author

ematejska mannequin commented Feb 5, 2020

Thanks for the quick respond and for passing along to the Xcode team via radar!

@porterchild
Copy link

The radar link doesn't work for me, does anyone know why that might be?

@dan-zheng
Copy link
Contributor

Radars are actually internal to Apple. This blog post has more info: https://nshipster.com/bug-reporting

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants