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.