无法在Swift项目Xcode 9 Beta中导入CoreNFC [英] Unable to import in CoreNFC in swift project Xcode 9 beta

查看:167
本文介绍了无法在Swift项目Xcode 9 Beta中导入CoreNFC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在快速项目中导入CoreNFC.得到此错误No such module CoreNFC.

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

我还将框架添加到了Linked Frameworks and Libraries.

推荐答案

根据 a在Apple开发者论坛上发布,您只能为真实设备或通用iOS设备构建,因为没有x86版本的CoreNFC.

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.

一旦切换到其中之一,就无需将CoreNFC添加到Linked Frameworks and Libraries,只需@import即可:

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

@import CoreNFC;

这篇关于无法在Swift项目Xcode 9 Beta中导入CoreNFC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆