不能用xcode 6 GM导入嵌入式框架 [英] can't import embedded framework with xcode 6 GM
问题描述
我在我的项目中添加了一个框架目标。但是,当我尝试导入框架时,编译器将在模块被禁用时返回错误使用'@import'。我已经在其Architectures构建设置中包含了arm64架构。我可以在构建阶段中看到该框架。我可以在新项目中导入框架,而不是当前的项目。有没有额外的配置,我错过了?
I added a framework target in my project. But when I attempt to import the framework, the compiler will return an error Use of '@import' when modules are disabled
. I have already included the arm64 architecture in its Architectures build settings. And I can see the framework in Build Phases. I can import a framework in a new project instead of my current project. Is there any additional config I missed?
推荐答案
禁用模块时使用'@import'
Use of '@import' when modules are disabled
错误讯息表示您正在尝试使用模块
@import
时,它被禁用。转到构建设置并启用 modules
或者改为使用 #import
。
Error msg says you are trying to use modules
by @import
when it is disabled. Goto build settings and enable modules
or use #import
instead.
通过更改为YES
这篇关于不能用xcode 6 GM导入嵌入式框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!