'Trying to create MapImage instance for map marker in Here Explore for iOS is giving a weird error

Here Explore

init(coordinates: GeoCoordinates, image: UIImage) {
    
            
            let pngData = image.pngData()
            
            let mapImage = MapImage(pixelData: pngData!, imageFormat: ImageFormat.png)
            print("i did print")
            self.mapMarker = MapMarker(at: coordinates, image: mapImage)
        }

This is the error message -

dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/usr/lib/libMTLCapture.dylib terminating with uncaught exception of type std::runtime_error: SDK engine is null. Please provide a valid object.

pngData isn't a nil value when the MapImage constructor is called, I checked it by printing. What does this error mean and how can I fix it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source