Search code examples
iosobjective-cskmaps

SKMapView initWithFrame: crash


Here is the code of my map initialization:

SKMapView *mapView = [[SKMapView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 100, 100)];
[self.view addSubview:mapView];

And here is the result :((

XCode stack trace screenshot

Pls any help?


Solution

  • I found the solution. One of 3rd party library added to the project wrong version of pnglib. After removing this lib, SKMaps using the system pnglib without any problems.