MapBox示例抛出错误 - mbtiles [英] MapBox example throws error - mbtiles

查看:549
本文介绍了MapBox示例抛出错误 - mbtiles的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MapBox示例,我已经导入了我自己的mbtiles文件。我遇到这个错误:MB示例[8517:c07] *由于未捕获的异常'NSInvalidArgumentException'终止应用程序,原因:'* - [NSURL initFileURLWithPath:]:nil string parameter'。
默认的mbtiles文件正常工作,我在这里做错什么?

解决方案

你可能没有正确捆绑MBTiles文件与您的应用程序。确保它被添加到您的应用程序目标,并且是复制捆绑资源构建阶段的一部分,以便将其复制到应用程序中。与默认值作为参考相比。 / p>

I am using MapBox example and I have imported my own mbtiles file. I am getting this error: "MB Example[8517:c07] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSURL initFileURLWithPath:]: nil string parameter'. The default mbtiles file is working fine. What am I doing wrong here?

解决方案

You are likely not properly bundling the MBTiles file with your app. Be sure that it is added to your app target and is part of the Copy Bundle Resources build phase so that it gets copied into the app. Compare to the default as a reference.

这篇关于MapBox示例抛出错误 - mbtiles的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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