I have project with Swift and ObjC files inside. After updating to Xcode 14 I have reached problem with PO printing error only during debugging in swift files. In ObjC files PO works great
Tried:
- clean DerivedData
- reinstall Xcode
- download repository from scratch
- p or v command have the same error
Error:
(lldb) po dependencies
warning: Swift error in scratch context: error: failed to load module 'AppName'
.
Shared Swift state for AppName has developed fatal errors and is being discarded.
REPL definitions and persistent names/types will be lost.
error: expression failed to parse:
unknown error
2
Answers
Carthage was the problem of broken debug. When building dependencies on another Mac, the debugger didn`t work. When building on my Mac, the debugger worked So we decided to transfer all Carthage dependencies to SPM and now debugger works fine :)
Carthage issue link: https://github.com/Carthage/Carthage/issues/924
warning: Swift error in scratch context: error: failed to load module
.
Shared Swift state for coyni V2 QA.app has developed fatal errors and is being discarded.
REPL definitions and persistent names/types will be lost.