Header file not found but only for device builds,

2020-05-06 10:39发布

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:

enter image description here

In Device doesn`t: enter image description here

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条回答
smile是对你的礼貌
2楼-- · 2020-05-06 10:46

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

查看更多
登录 后发表回答