MonkeyBonkey
MonkeyBonkey

Reputation: 47851

How to import Objective-C cocoapod to Swift using bridging header

I'm getting no such module KPClusteringController error when I'm trying to import the kingpin cocoapod into my swift project

https://github.com/itsbonczek/kingpin

my Sandbox-Bridging-Header.h

#import <kingpin/KPClusteringController.h>

my import statement in the view controller

import UIKit
import MapKit
import KPClusteringController

Upvotes: 4

Views: 2659

Answers (1)

Neil Horton
Neil Horton

Reputation: 707

Could be one of a few things

  1. ensure you are using the project workspace

  2. Go to Target Build Settings and ensure the value for Objective-C Bridging Header is a path to your bridging header

  3. Ensure Your target build coniguration inherits from your Pods xcconfig

Upvotes: 1

Related Questions