I'm attempting to use HEREMaps with SwiftUI via UIViewRepresentable and I'm getting the following crash when instantiating NMAMapView. Using HEREMaps version 3.13.3 pod.
Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
import SwiftUI
import NMAKit
struct MapView: UIViewRepresentable {
func makeUIView(context: Context) -> NMAMapView {
let mapView = NMAMapView()
return mapView
}
func updateUIView(_ uiView: NMAMapView, context: Context) {
}
}
struct ContentView: View {
var body: some View {
MapView()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Also, no luck with adding NSLocationWhenInUseUsageDescription to my Inof.plist