title: Unit testing an iOS static library; access AddressBook
body: <p>I'm unit testing an iOS static library: so no UI, no app.</p>
  
  <p>One of the unit tests requires to access to the address book and retrieve the list of contacts. The problem is that as I'm not launching any app on the simulator, the popup that should ask user for grant permissions to the address book never appears. So that, '<strong><em>ABAddressBookRequestAccessWithCompletion</em></strong>' always return NO. </p>
  
  <p>I found this similar topic: <a href="https://stackoverflow.com/questions/24497022/grant-access-to-nab-programatically-on-ios-7-0-simulator">Grant access to NAB programatically on iOS 7.0 Simulator</a>
  but does not apply to my case, as I'm not launching any app, just testing library methods.</p>
  
  <p>Is there any way to access the address book's contacts while unit testing an static library?</p>
  
  <p>Thanks!</p>