can#39;t import embedded framework with xcode 6 GM(无法使用 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 导入嵌入式框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:无法使用 xcode 6 GM 导入嵌入式框架


- UITextView 内容插图 2022-01-01
- 使用自动布局向 UIScrollView 添加动态大小的视图 2022-01-01
- URL编码Swift iOS 2022-01-01
- Xcode 7.3 中带有 UILabel 的 UIStackView 2022-01-01
- 如何在 iPhone 模拟器中重置 NSUserDefaults 数据? 2022-01-01
- 网上有没有好的 UIScrollView 教程? 2022-01-01
- SetOnItemSelectedListener上的微调程序错误 2022-01-01
- 在 Iphone SDK 的导航栏上添加多个按钮 2022-01-01
- GPS状态的广播接收器? 2022-01-01
- 类似于 Mail.app 的 iPad 模态视图控制器? 2022-01-01