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 导入嵌入式框架
基础教程推荐
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
