<!--
{
  "availability" : [
    "iOS: 2.0.0 - 9.0.0",
    "iPadOS: 2.0.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABAddressBookCreateWithOptions(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:@F@ABAddressBookCreateWithOptions"
  },
  "title" : "ABAddressBookCreateWithOptions(_:_:)"
}
-->

# ABAddressBookCreateWithOptions(_:_:)

Creates a new address book object with data from the Address Book database.

```
func ABAddressBookCreateWithOptions(_ options: CFDictionary!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<ABAddressBook>!
```

## Parameters

`options`

Reserved. Pass `NULL`.

`error`

On error, contains error information. See [Address Book Errors](/documentation/AddressBook/address-book-errors).

## Return Value

An address book object, `NULL`, or an empty database.

## Discussion

Changes made to the returned address book are reflected in the Address Book database only after saving the address book with [`ABAddressBookSave(_:_:)`](/documentation/AddressBook/ABAddressBookSave(_:_:)).

On iOS 6.0 and later, if the caller does not have access to the Address Book database:

- For apps linked against iOS 6.0 and later, this function returns `NULL`.
- For apps linked against previous version of iOS, this function returns an empty read-only database.

If your app syncs information with the database, it must not sync data when it does not have access to the database.

> Important:
> You must ensure that an instance of `ABAddressBookRef` is used by only one thread.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)