Property 'uuid' not found on object of type 'CBPeripheral *'
<p>I am using the following code:</p>

<pre><code>CFStringRef cfstr = CFUUIDCreateString(NULL, self.peripheral.uuid);
</code></pre>

<p>This returns an error of</p>

<blockquote>
  <p>"Property 'uuid' not found on object of type 'CBPeripheral *'"</p>
</blockquote>

<p>I think this is because <code>uuid</code> has been deprecated but I am not sure how to correct it.</p>

<p>I have tried changing <code>self.peripheral.uuid</code> to <code>self.peripheral.identifier</code> but this then gives me</p>

<blockquote>
  <p>'incompatible pointer types passing retainable parameter of type
  'NSUUID *' to CF Function expecting 'CFUUIDRef' (aka 'const struct
  __CFUUID *') type</p>
</blockquote>

<p>please help if you can.</p>