I'm unit testing an iOS static library: so no UI, no app.
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, 'ABAddressBookRequestAccessWithCompletion' always return NO.
I found this similar topic: Grant access to NAB programatically on iOS 7.0 Simulator but does not apply to my case, as I'm not launching any app, just testing library methods.
Is there any way to access the address book's contacts while unit testing an static library?
Thanks!