When I run my app on iPhone 5 I get no user location icon (the blue dot), but instead it shows me an error. I just get bunch of lines like this:
<Error>: CGBitmapContextGetData: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
I also got the error for the missing GMSSprites-0@2x, but I fixed that by renaming GMSSprites-0_retina to GMSSprites-0@2x.
I figured that it has something to do with Google Maps SDK version, so I updated it to version 1.7.2 a few times, however nothing changes. The weird thing is that when I run in my phone I just get display errors, however when I run in on emulator I get the following:
Google Maps SDK for iOS version: 1.5.0.5445
New version of Google Maps SDK for iOS available: 1.7.2.7908
I understand that for some reason it didn't catch the update of the framework. Here are the steps that I took to update the SDK:
- Delete GoogleMaps.framework and GoogleMaps.bundle from project, and remove them from Trash
- Did Clean Build Folder
- Downloaded the latest SDK from Google's website
- Move new GoogleMaps.framework to project. Selected Copy items into destination folder
- Right click on GoogleMaps.framework in project navigator, and show it's resources
- Moved GoogleMaps.bundle from the GoogleMaps.framework in my project, this time without selecting Copy items into destination folder.
- Did another Clean Build Folder
- Build the app and run with the same problem
Am I doing something wrong in the steps, or is it just something else?