LLDB: MKCoordinateRegion property not printed correctly

Originator:futuretap
Number:rdar://12310973 Date Originated:
Status:Duplicate/11904570/Open Resolved:
Product:Developer Tools Product Version:4.5 GM
Classification:Other Bug Reproducible:Always
 
I'm in a subclass of MKMapView and debugging the region property.

In the variables pane, Xcode prints the region correctly:

http://d.pr/i/h5qF

However, no matter how I try, in the debugging console I get incorrect output or errors:

(lldb) p self.region
(MKCoordinateRegion) $1 = {
  (CLLocationCoordinate2D) center = {
    (CLLocationDegrees) latitude = 48
    (CLLocationDegrees) longitude = 48
    (CLLocationDegrees) latitudeDelta = 48
    (CLLocationDegrees) longitudeDelta = 11
  }
  (MKCoordinateSpan) span = {
    (CLLocationDegrees) latitude = 0.341835
    (CLLocationDegrees) longitude = 0.341835
    (CLLocationDegrees) latitudeDelta = 0.341835
    (CLLocationDegrees) longitudeDelta = 0.439453
  }
  (CLLocationCoordinate2D) center = {}
}


(lldb) p (MKCoordinateRegion) self.region
error: warning: type '<anonymous struct>' has incompatible definitions in different translation units
warning: type '<anonymous struct>' has incompatible definitions in different translation units
warning: type '<anonymous struct>' has incompatible definitions in different translation units
warning: type '<anonymous struct>' has incompatible definitions in different translation units
error: no matching conversion for C-style cast from 'MKCoordinateRegion' (aka '<anonymous struct>') to 'MKCoordinateRegion' (aka '<anonymous struct>')
note: field 'latitudeDelta' has type 'CLLocationDegrees' (aka 'double') here
note: field 'latitudeDelta' has type 'CLLocationDegrees' (aka 'double') here
note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'MKCoordinateRegion' (aka '<anonymous struct>') to 'const <anonymous struct>' for 1st argument; 
note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'MKCoordinateRegion' (aka '<anonymous struct>') to '<anonymous struct>' for 1st argument; 
note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
note: field 'latitudeDelta' has type 'CLLocationDegrees' (aka 'double') here
note: field 'center' has type 'CLLocationCoordinate2D' (aka '<anonymous struct>') here
error: 1 errors parsing expression


(lldb) p (MKCoordinateRegion) [self region]
error: warning: type '<anonymous struct>' has incompatible definitions in different translation units
warning: type '<anonymous struct>' has incompatible definitions in different translation units
warning: type '<anonymous struct>' has incompatible definitions in different translation units
warning: type '<anonymous struct>' has incompatible definitions in different translation units
error: no matching conversion for C-style cast from 'MKCoordinateRegion' (aka '<anonymous struct>') to 'MKCoordinateRegion' (aka '<anonymous struct>')
note: field 'latitudeDelta' has type 'CLLocationDegrees' (aka 'double') here
note: field 'latitudeDelta' has type 'CLLocationDegrees' (aka 'double') here
note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'MKCoordinateRegion' (aka '<anonymous struct>') to 'const <anonymous struct>' for 1st argument; 
note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'MKCoordinateRegion' (aka '<anonymous struct>') to '<anonymous struct>' for 1st argument; 
note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
note: field 'latitudeDelta' has type 'CLLocationDegrees' (aka 'double') here
note: field 'center' has type 'CLLocationCoordinate2D' (aka '<anonymous struct>') here
error: 1 errors parsing expression

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!