无法使用 xcode 6 GM 导入嵌入式框架 [英] can't import embedded framework with xcode 6 GM

查看:23
本文介绍了无法使用 xcode 6 GM 导入嵌入式框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中添加了一个框架目标.但是当我尝试导入框架时,编译器会返回一个错误Use of '@import' when modules are disabled.我已经在其架构构建设置中包含了 arm64 架构.我可以在 Build Phases 中看到框架.我可以在一个新项目中导入一个框架,而不是我当前的项目.我错过了任何其他配置吗?

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.转到构建设置并启用 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 来启用它

Enable it by changing to YES

这篇关于无法使用 xcode 6 GM 导入嵌入式框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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