I'm trying to add a cinterop for a framework. My ...
# kotlin-native
m
I'm trying to add a cinterop for a framework. My def file looks like
Copy code
language = Objective-C
modules = ModuleName
linkerOpts = -framework ModuleName
It is failing with error message
cannot find protocol declaration for 'CLLocationManagerDelegate
I tried added -
framework CoreLocation
as a compiler option, but it still doesn't find it. How do you create a cinterop for a framework that depends on
CoreLocation
? I noticed the header file has
Copy code
@class CLLocationManager;
@class CLLocation;
@class CLHeading;
But no foreword declaration of
CLLocationManagerDelegate
, but I don't know enough about Swift and Objective-C to tell if that is a broken header file or not.