After upgrading to Xcode 10.0 the debugger is failing to perform basic functions. It's possible the debugger problems are unrelated to the upgrade to 10.0 but I suspect this as the catalyst.
<h3>Symptoms:</h3>
- Breakpoints **are** breaking properly
- The "local variables" area (not sure if this is the proper term) lists local variables but cannot provide any info on them. Attempting something like "Print description of x" The result is an error message:
Printing description of x
x = <could not resolve type>
Followed by:
note: Swift compiler options for ProjectX conflict with options
found in other modules;
Switching to a new expression evaluator for ProjectX, old $R
variables are lost.
- when selecting "view memory of x" for any given variable, the "memory view" appears, but the address is "0x0" and there is absolutely zero content in the view.
- Using the (lldb) interface directly, when I try to print a variable, i.e. `po x` to print the variable "x" I'm first given the message above about switching to a new expression evaluator, but upon second execution of the same print command `po x`, a different error is presented as
> error: Swift expressions require OS X 10.10 / iOS 8 SDKs or later.
Yes, I am on OS X 10.13 and my iOS SDK is 12.0 and I've simulated various devices iPad 6, pro 2, air 2, iPhone X, debugger has exact same symptoms on all devices.
<h3>Attempted fixes:</h3>
- I've tried re-cloning my repository in a new location to import a new workspace in a new location.
- Deleted DerivedData and rebooted Xcode many times
- Uninstalled and re-installed Xcode
- Cleaned and re-built everything
- Restarted computer