简体   繁体   English

iOS 13.3.1 在 App 文件夹下显示 .sqlite 文件

[英]iOS 13.3.1 shows .sqlite file under App's folder

After updating iOS 13.3.1, Files app shows ".sqlite" files under App's folder.更新 iOS 13.3.1 后,文件应用程序在应用程序的文件夹下显示“.sqlite”文件。

Files -> On My iPhone -> [APP]

Is it iOS bug ?是iOS错误吗? Will it cause any problems ?它会导致任何问题吗?

Note* I checked my other mobile with iOS 12.2 it doesn't have this behaviour.注意*我用 iOS 12.2 检查了我的其他手机,它没有这种行为。

It's because this app has put this SQLite database file in the documents folder rather than the application support folder.这是因为此应用程序已将此 SQLite 数据库文件放在文档文件夹而不是应用程序支持文件夹中。 See iOS Storage Best Practices .请参阅iOS 存储最佳实践

Will it cause any problems?它会导致任何问题吗?

Yes, you are exposing internal implementation details to users, it's a potential security issue (if you have anything confidential in that database) and anyone with access to that device can now easily extract everything in that database.是的,您正在向用户公开内部实施细节,这是一个潜在的安全问题(如果您在该数据库中有任何机密),并且任何有权访问该设备的人现在都可以轻松提取该数据库中的所有内容。 And a user theoretically could even alter this database, breaking the app or changing its behavior.理论上,用户甚至可以改变这个数据库,破坏应用程序或改变其行为。

You definitely want to have the app check to see if this file exists in the Documents directory, and if so, programmatically move it to the Application Support directory and open it from there from that point on.您肯定希望应用程序检查此文件是否存在于 Documents 目录中,如果存在,请以编程方式将其移动到 Application Support 目录,然后从那里打开它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 哪里可以获取iOS 13.3.1的Xcode支持文件? - Where to get Xcode Support File for iOS 13.3.1? iOS应用程序构建显示在“活动”下,而不显示在“应用商店”下 - iOS app build shows up under “Activity” but not under “App Store” 将 sqlite db 从我的应用程序文件夹复制到 ios swift 中的内置文件应用程序文件夹 - Copy sqlite db from my app document folder to builtin file app folder in ios swift 应用程序在模拟器上完美运行,但不能在物理设备上运行 [在 iOS 13.3.1 上] - App runs perfectly on simulators but not on physical devices [on iOS 13.3.1] iOS 应用程序:如何访问其他用户保存在 cognito identity id 文件夹下的 S3 对象 - iOS app: How to access S3 object saved under cognito identity id folder by another user iOS8 无法在应用组共享容器位置下创建文件夹/文件 - iOS8 Unable to create a folder/file under app group shared container location pod 框架未在 ios 13.3.1 中加载 - pod framework not loading in ios 13.3.1 SQLite数据库/文件不再在ios应用程序构建中 - Sqlite database/file no longer in ios app build Sqlite文件的位置CoreData iOS应用的位置 - Location of Sqlite file location of CoreData iOS App 在iOS应用中使用.mdb文件代替SQLite? - Use .mdb file instead of SQLite in iOS app ?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM