Apple Maps, Raster Overlays Above Labels - Failed to decode

IosIos11

Ios Problem Overview


After migrating to the new iOS 11. We are seeing this new error. Not only we are facing the error but the whole UI is sluggish.

This is a native iOS app written in obj-c. We are not seeing the error in ios 10.2 or earlier. Any ideas?

Ios Solutions


Solution 1 - Ios

It's a known bug that shouldn't pop up. It's on Apple's side, not yours. It's still not fixed as of 11.1, although word is getting out that it might be fixed as of 11.2. Simply ignore it.

Also, you may get an error like this if you are working with annotations on maps:

"MKAnnotationView layer is not of expected type: MKLayer"

Ignore this as well for the same reasons as stated above. If you want to, click here and see this guy's recommendation for silencing these errors if they are bothering you.

I just tried what the guy up there recommended, and it works at silencing the warning so you won't see it (be careful though, it will also silence other warnings that could be important if they come up).

Steps that need to be done:

  1. Click on "Product", scroll down to "Scheme", and click "Edit Scheme".
  2. Click "Run" on the menu on the left.
  3. Press the + button in the "Environment Variables" section and type in "OS_ACTIVITY_MODE" under name.
  4. Type in "disable" under value.
  5. Press the "Close" button and you are done.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPradeep MahdevuView Question on Stackoverflow
Solution 1 - IosRolf Cosmo AnthonyView Answer on Stackoverflow