iOS6 Simulator MKMapKit“无法在框架中找到default.styleproto” [英] iOS6 Simulator MKMapKit "Couldn't find default.styleproto in framework"

查看:72
本文介绍了iOS6 Simulator MKMapKit“无法在框架中找到default.styleproto”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用iOS6模拟器运行我的应用程序我在 viewDidLoad 被调用之前在XCode控制台中打印以下内容:

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


在框架中找不到default.styleproto

Couldn't find default.styleproto in framework

是否还有其他人遇到此问题,以及如果有,你找到了原因吗?我的猜测是它与iOS6 Apple Maps有关,但谁知道呢!

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应该补充说我在iOS 5.1模拟器中没有收到此警告。

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

推荐答案

我找到了一种方法来持续重现这一点。

I found a way to consistently reproduce this.

首先,罪魁祸首是模拟器的Cache文件夹中的一组文件。转到iPhone模拟器的应用程序支持文件夹:

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及以上] / Library

然后查看 Caches / GeoServices / Resources

你会在那里看到一些 .styleproto 文件。仅当MapKit在模拟器中首次使用时才会创建这些文件。它也可能发生在设备上,但我还没有确认。

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.

如果你想测试它,请确保你有。 styleproto 文件,然后重新启动您的应用程序,访问地图时您将不会再看到警告。

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.

删除 GeoServices 缓存文件夹,退出并重新启动模拟器(和你的应用程序),并且有警告!

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

这篇关于iOS6 Simulator MKMapKit“无法在框架中找到default.styleproto”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆