0

I am unable to import CoreNFC in a swift project. Getting this error No such module CoreNFC.

enter image description here

I also added the framework to Linked Frameworks and Libraries.

enter image description here

Bilal
  • 18,478
  • 8
  • 57
  • 72

1 Answers1

4

According to a post on the Apple Developer forums, you can only build for a real device or the Generic iOS device as there is no x86 version of CoreNFC.

Once you switch to one of these, you do not need to add CoreNFC to Linked Frameworks and Libraries, just @import it:

@import CoreNFC;
Karl Monaghan
  • 880
  • 9
  • 14