title: lldb error: property not found on object of type
body: <p>I am trying to debug my iOS app using lldb and I'm getting really weird errors on debug.</p>
  
  <p>A few lines before my breakpoint, I've got:</p>
  
  <p><code>CGRect frame = view.frame;</code></p>
  
  <p>Which I can access with no problems with <code>print frame</code> command in lldb. However, when I try to access the frame again in lldb, I type <code>print view.frame</code> and get the following error:</p>
  
  <p><code>error: property 'frame' not found on object of type 'UIView *'</code></p>
  
  <p>This doesn't make sense as I can verify the <code>view</code> is a <code>UIView*</code> instance and has a valid property called frame by typing <code>po view</code> and getting correct results:</p>
  
  <p><code>(UIView *) $4 = 0x1e199bf0 &lt;MyAppCustomView: 0x1e199bf0; frame = (3398 3396; 204 208); layer = &lt;CALayer: 0x1e199ce0&gt;&gt;</code></p>
  
  <p>This particular lldb error happens to me <em>a lot</em>, and I couldn't find the cause of this error. Someone suggested at <a href="https://stackoverflow.com/questions/13567455/property-count-not-found-on-object-of-type-nsmutablearray-po-command-in-ll">Property &#39;count&#39; not found on object of type &#39;NSMutableArray *&#39; PO command in lldb</a> that one could use gdb as <code>(gdb) p view.frame</code> but I'm getting <code>error: '(gdb)' is not a valid command.</code> and I highly suspect that a gdb command would "work?" inside another debugger anyway.</p>
  
  <p>Any suggestions or workarounds for this bug which occurs randomly?</p>