Jpark822
Jpark822

Reputation: 138

Cocoa pods with Swift 1.2 bridging header comples, but ViewController can't find type

I'm currently migrating over to Swift 1.2, and am currently using the use_frameworks! flag in cocoapods in order to accomodate Alamofire. Pods installs correctly, and the compiler complained that the bridging header couldn't find headers that were declared as:

#import "ThirdPartyLibraryClass.h"

so I updated to

#import <ThirdPartyLibraryClass/ThirdPartyLibraryClass.h>

the compiler stopped complaining, but can't find the types when building

Upvotes: 1

Views: 149

Answers (1)

Masterfego
Masterfego

Reputation: 2678

try this:

Select your project, go to:

BuildSettings - searchPath - User header search path:

enter image description here

Now enter this value for debug and/or release: *“Pods/”***

Upvotes: 1

Related Questions