How to import Objective-C cocoapod into Swift using bridge header

I don't get such a KPClusteringController module error when I try to import a kingpin coco hood into my quick 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
+4
source share
1 answer

May be one of several things.

  • make sure you use the project workspace

  • Go to the target assembly settings and make sure that the Objective-C Bridging Header value is the path to the bridge header

  • Make sure that the instantiation of your target assembly is inherited from your Pods xcconfig

+1
source

All Articles