Unable to import in CoreNFC in swift project Xcode 9 beta

▼魔方 西西 提交于 2019-12-13 08:31:49

问题


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.


回答1:


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;


来源:https://stackoverflow.com/questions/44386023/unable-to-import-in-corenfc-in-swift-project-xcode-9-beta

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!