Header file not found but only for device builds,

2020-05-06 10:55发布

问题:

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