Search code examples
frameworksswift2ios9xcode7-beta4

Importing Contacts Framework in xcode7 , Swift2


Im trying to import contacts framework to my xcode7 , I have added the contacts framework from the build phases and I have declared

import UIKit
import Contacts

but it shows error saying /Users/anonymous/Desktop/Contacts/Contacts/ViewController.swift:10:8: Cannot import module being compiled


Solution

  • Yes try giving some different project name say"MyContactsDemo". it should work.

    Note:posted in answer block as suggested by the person who questioned.