I'm using XCode 8.2.1 with Swift 3.0.1
I'm deploying DEBUG builds to Fabric/Crashlytics from my local machine using fastlane, so I do have appropriate .xcarchive's in XCode organizer.
I'm able to attach to process of my application on iPhone using XCode > Debug > Attach to process by PID or name
Now the problem is that the whole Swift stuff is unavailable for me to debug. Neither symbolic breakpoints, no po is working for Swift. Moreover, lldb expects Objective-C syntax so I'm able to do stuff like po [[UIApplication sharedApplication] delegate] etc.
Now I'm trying to access calculatable properties from protocol extensions and have no luck. So the question is:
Given: Imagine I have
protocol Some {
var some: String { get }
}
extension Some {
var some: String {
get {
return "Hello"
}
}
}
class AppDelegate: UIResponder, Some {
}
Needed: access AppDelegate's some property from lldb
po [[[UIApplication sharedApplication] delegate] some] results in error:
error: Execution was interrupted, reason: Attempted to dereference an invalid ObjC Object or send it an unrecognized selector.
The process has been returned to the state before expression evaluation.
Any chance to use Swift syntax or some other suggestion? Thanks!