I have a swift module managed by CocoaPods, the spec file looks like this:
s.source_files="#{root}/xxx-umbrella.h","#{root}/Classes/**/*.{h,m,swift}"
s.swift_version = '5.0'
s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" }
It's not a pure swift module, contains both Oc and swift. I was trying to print orderID, which's a property of my class: private let orderID: String. When I print it in my class, everything works fine:
print("======" + orderID) //======orderID
But when I use LLDB debug in XCode, I got an error below.
(lldb) po orderID
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 xxx_Example could not be initialized.
The REPL and expressions are unavailable.
(lldb) po NSLog(@"%@", orderID)
Shared Swift state for xxx_Example could not be initialized.
The REPL and expressions are unavailable.
Did I miss something, any idea?