ABAddressBookCopyArrayOfAllPeople Not returning any People
<p>I am starting to work with the ABAddress Book and using a very simple starting point... I want to get all  the entries in my address book and put it into an array. It keeps showing 0 elements.</p>

<pre><code>ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, NULL);
NSArray *allContacts = (__bridge NSArray *)ABAddressBookCopyArrayOfAllPeople(addressBook);
</code></pre>

<p>Doesn't the <code>ABAddressBookCopyArrayOfAllPeople</code> actually get all people from your contact list or did I misunderstand something. </p>

<p><strong>NOTE TO ADMIN's</strong>  My question was a Objective C related and not for SWIFT so this answer doesn't apply. In the recommended answer it explains why the OP's code migration from Objective C to Swift is flawed and doesn't work. My question is not. I am trying to understand why when I install this on my iPhone, which has hundreds of contacts <code>allContacts</code> has no items. I was trying to understand the correct way to put all my contacts into an array. Basically because of business need I am doing my own contact picker because I don't want to use Apple's built in one.</p>