简体   繁体   中英

Unable to import in CoreNFC in swift project Xcode 9 beta

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

在此处输入图片说明

I also added the framework to Linked Frameworks and Libraries .

在此处输入图片说明

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;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM