无法在swift项目中的CoreNFC中导入Xcode 9 beta

时间:2017-06-06 09:18:08

标签: ios ios11 xcode9-beta

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

enter image description here

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

enter image description here

1 个答案:

答案 0 :(得分:4)

根据a post on the Apple Developer forums,您只能为真实设备或通用iOS设备构建,因为没有x86版本的CoreNFC。

切换到其中一个后,您无需将CoreNFC添加到Linked Frameworks and Libraries,只需@import它:

@import CoreNFC;