XCode中的Bundle sqlite db并从swift访问它 我想在我的iOS应用程序中包括一个预填充的SQLite DB。 我添加了我的gtfs.db,我正在使用该行: 令filepath = bundle.main.url(foreResource:“ gtfs”,withextension:“ db” ...

问题描述 投票:0回答:0
但此返回nil

Target Bundle Ressources

我缺少什么?

thanks提供任何帮助:) enter image description here

找到它!由于某种原因,我的文件被添加到ressource标签中,然后考虑“按需” ... 我删除了它,现在一切都很好!

swift sqlite
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.