ElliotSknr
04/19/2024, 9:22 AMclass MapViewDelegate : MKMapViewDelegateProtocol, NSObject() {
override fun mapView(mapView: MKMapView, viewForAnnotation: MKAnnotationProtocol): MKAnnotationView? { /*...more code...*/
Cameron Watters
04/19/2024, 5:12 PMMKMapViewDelegateProtocol
, I don’t even have a stub that matches the one mentioned in the error:public open expect fun mapView(mapView: MKMapView, didSelectAnnotation: MKAnnotationProtocol): Unit
public open fun mapView(mapView: platform.MapKit.MKMapView, didSelectAnnotationView: platform.MapKit.MKAnnotationView): kotlin.Unit
class MapViewDelegate : MKMapViewDelegateProtocol, NSObject() {
override fun mapView(
mapView: MKMapView,
viewForAnnotation: MKAnnotationProtocol,
): MKAnnotationView? {
return null
}
}
ElliotSknr
04/22/2024, 9:35 AMimport platform.MapKit.MKMapViewDelegateProtocol
in the iosMain sourceset. It's strange that I am able to build fine when simply including the module, but cannot perform a full build as to be able to publish the library (if you're aware of some sort of config I can add that will ignore the error while building that would be grand)ElliotSknr
04/22/2024, 9:44 AM