MapBox example throws error - mbtiles

╄→гoц情女王★ 提交于 2020-01-17 07:04:45

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/14909869/mapbox-example-throws-error-mbtiles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!