Xcode Debugger Swift: не удается просмотреть значение переменных в отладчике, а команда lldb выдает ошибку - PullRequest
1 голос
/ 07 мая 2020

У меня проблемы с Xcode - версия 11.3.1. Когда я пытаюсь отладить код, получающий ошибку ниже, когда код останавливается в точке отладчика.

/Users/dhavalkansara/Library/Developer/Xcode/DerivedData/Runner-eyrexmpjkcwrmggjgqgxkfyogvgk/Build/Products/Debug-iphonesimulator/Runner.app/Runner: Cannot load Swift type information; AST validation error in "Runner": The module file format is too old to be used by this version of the debugger.
Cannot create Swift scratch context (couldn't load the Swift stdlib)Cannot create Swift scratch context (couldn't load the Swift stdlib)Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
Shared Swift state for Runner could not be initialized.
The REPL and expressions are unavailable.
  • Когда я пытался напечатать значение переменной, используя lldb po varName, а также не было видно значений для переменной в левой части на снимке экрана ниже:

enter image description here

Я уже пробовал следующие шаги, но все еще сталкиваюсь с той же ошибкой для всех проектов:

  • Удаленные производные данные
  • Чистая сборка
  • Перезапуск Xcode
...