How do you get a persons phone number from the address book?
<p>All I want to do is let the user select a number from the address book. I found the code in this question:</p>

<p><a href="http://stackoverflow.com/questions/286207/how-to-get-a-phone-number-from-an-address-book-contact-iphone-sdk">http://stackoverflow.com/questions/286207/how-to-get-a-phone-number-from-an-address-book-contact-iphone-sdk</a></p>

<pre><code>ABMultiValueRef container = ABRecordCopyValue(person, property);
CFStringRef contactData = ABMultiValueCopyValueAtIndex(container, identifier);
CFRelease(container);
NSString *contactString = [NSString stringWithString:(NSString *)contactData];
CFRelease(contactData);
</code></pre>

<p>The problem is that on the second line (when running on a 3.0 device) I get the following error:</p>

<p><strong>Account Manager could not find account with identifier MobileMe:rustyshelf</strong></p>

<p>followed by:</p>

<p>Program received signal:  "EXC_BAD_ACCESS".</p>

<p>This is all inside the picker delegate method:</p>

<pre><code>- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier{
</code></pre>

<p>This is just one of the contacts in my address book, which is synched with Mobile Me</p>

<p>Edit: I think this might be a bug with the SDK, it happens for some of my contacts but not for others...</p>
