Header file not found but only for device builds, not simulator builds

本秂侑毒 提交于 2019-12-31 05:24:05

问题


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.

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.

The Message shows:

/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'

回答1:


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

Like a normal Swift library.

Support of CocoaPods



来源:https://stackoverflow.com/questions/34168529/header-file-not-found-but-only-for-device-builds-not-simulator-builds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!