Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS6 Simulator MKMapKit "Couldn't find default.styleproto in framework"

Running my app with the iOS6 simulator I am getting the following printed in the XCode console prior to viewDidLoad getting called:

Couldn't find default.styleproto in framework

Has anyone else encountered this, and if so have you found a reason why? My guess is that it has to do with the iOS6 Apple Maps, but who knows!

EDIT

I should add that I don't get this warning in the iOS 5.1 simulator.

like image 297
abellina Avatar asked Sep 27 '12 17:09

abellina


3 Answers

I found a way to consistently reproduce this.

First, the culprit is a set of files in the Cache folder for your simulator. Go to your Application Support folder for the iPhone Simulator:

~/Library/Application Support/iPhone Simulator/[6.0 and above]/Library

Then look inside of your Caches/GeoServices/Resources

You'll see some .styleproto files in there. These files are only created when MapKit is first used in a simulator. It may also happen on the device, but I haven't confirmed it.

If you want to test this, make sure you have the .styleproto files, then re-launch your app, and you won't see the warning again when accessing the maps.

Remove the GeoServices cache folder, quit and restart the simulator (and your app), and there is the warning!

like image 134
abellina Avatar answered Oct 21 '22 05:10

abellina


I solved by adjusting the MKMapView in my view controller to iPhone 5 new size, now I got no warning message.

like image 2
matsoftware Avatar answered Oct 21 '22 04:10

matsoftware


mmm...I had de same problem...I think the problem could be the 6.0 Simulator; if I set the Deployment Target to 5.1 and run the app using the 5.1 Simulator and uncheck the Autolayout check-box, I didn't have any problem, but if I use the 6.0 Simulator when I run the app, the map doesn't appear, and the message "Couldn't find default.styleproto in framework" is printed in Xcode console...

like image 2
fede256 Avatar answered Oct 21 '22 05:10

fede256