Gabriel Rodrigues
Gabriel Rodrigues

Reputation: 510

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

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'

Upvotes: 1

Views: 2210

Answers (1)

Gabriel Rodrigues
Gabriel Rodrigues

Reputation: 510

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

Upvotes: 3

Related Questions