James
James

Reputation: 492

Objective-C Generated Interface Header Cannot Find Pod Header

I am having a problem with a Pod in Xcode. It has both Objective-C and Swift, and I just added some more Swift classes to it. However, now when building, the Objective-C Generated Interface Header file (Test_Pod-Swift.h) cannot find the Test_Pod.h file, so it isn't building. The pod is called Test_Pod, and the Interface Header file says "'Test_Pod/Test_Pod.h' file not found". It seems to only happen after making the classes public, which is needed for access outside of the pod, but I dont understand how that is breaking the build.

Upvotes: 0

Views: 110

Answers (2)

James
James

Reputation: 492

This turned out to be the same issue as in this thread: Building a Cocoapod with both Swift and Objective-C: How to Deal with Umbrella Header Issues?

Adding the header to the top level of pod classes and naming it "Test_Pod.h" with just:

#import "Test_Pod-umbrella.h"

Upvotes: 0

Goldy Brar Gangster
Goldy Brar Gangster

Reputation: 26

Try removing the Test_Pod from your project and reinstalling it

pod deintegrate
pod install

Upvotes: 0

Related Questions