Pravin S.
Pravin S.

Reputation: 485

Showing error : No Such module Contacts

I am trying to implement contact details from iphone. but getting error

Showing error No such module Contacts

Upvotes: 0

Views: 162

Answers (2)

mohonish
mohonish

Reputation: 1396

In your project build settings, under the general tab, find the section for Linked frameworks and Libraries.

Then find and add Contacts.framework (and optionally ContactsUI.framework) to your project.

Do a clean rebuild of your project to be sure.

Hope that helps!

Upvotes: 1

Sohel L.
Sohel L.

Reputation: 9540

It shows because in iOS9 new Contacts framework has been integrated named "ContactsUI".

so, import ContactsUI in your file.

Reference Example:

How to select a contact with ABPeoplePickerNavigationController in Swift?

Upvotes: 0

Related Questions