找不到头文件,但仅用于设备构建,而不是模拟器构建 [英] Header file not found but only for device builds, not simulator builds

查看:144
本文介绍了找不到头文件,但仅用于设备构建,而不是模拟器构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将Xcode更新为7.1.1时,它开始显示消息,找不到特定的头文件,但头文件就在那里。
当我为模拟器构建时,它不会显示此消息。

When I updated my Xcode to 7.1.1 it started to show the message that the specific header file is not found but the header file is there. And when I build for the simulator it doesn't show this message.

在Simulator Works中:

In Simulator Works:

在设备中没有:

In Device doesn`t:

最尴尬的是我创建了一个没有任何内容的单一视图应用程序并在设备上运行。

And the most awkward is that I create a single view aplication with nothing and runs on device.

消息显示:

/Users/gabrielrodrigues/Desktop/puc-vc/PUC VC/PUC VC-Bridging-Header.h:9:9: error: 'MMDrawerController.h' file not found
#import "MMDrawerController.h"
        ^
<unknown>:0: error: failed to import bridging header '/Users/gabrielrodrigues/Desktop/puc-vc/PUC VC/PUC VC-Bridging-Header.h'


推荐答案

我不再需要使用 Bridging-header.h 了因为我正在使用实现对这种情况的支持的可可豆荚,为了解决我只是删除文件并在视图中插入:

I don't need to use the Bridging-header.h anymore cuz I'm using cocoa pods that implements a support for this situation, for solve I just delete the file and insert in the views:

import MMDrawerController

像普通的Swift库一样。

Like a normal Swift library.

支持CocoaPods

这篇关于找不到头文件,但仅用于设备构建,而不是模拟器构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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