iOS - 在越狱设备上访问沙箱外的文件系统

标签 ios swift sandbox jailbreak theos

我正在使用 theos [application_swift] 开发一个应用程序,并希望在沙箱之外访问文件系统。

据我了解,将 [application_swift] 与 theos 一起使用应该可以让我访问沙箱外的文件,但我尝试使用 FileManager.default.fileExists(atPath:) 访问文件我喜欢,结果是找不到文件。

值得一提的是,我显然在运行 11.2 的越狱设备上运行。

我错过了什么吗?

最佳答案

我已经能够通过将 com.apple.private.security.no-container 添加到我的权利文件并使用 codesign 添加它们来解决这个问题。

codesign --entitlements app.entitlements -f -s "iPhone 开发者:xxxxxxxxxxxxxxxxx"MyApp.app

关于iOS - 在越狱设备上访问沙箱外的文件系统,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53028840/

相关文章:

ios - 在核心蓝牙连接中删除 PIN

ios - 迁移问题到 iphone 5 分辨率

ios - swift ios 如何检查核心数据库中的字段

objective-c - 是否可以在 Swift 中创建可选文字?

html - 如何突破沙盒 iFrame?

cocoa - 在沙盒应用程序中读取桌面图片

html - css 样式不适用于 iOS 中的 <ul> 和 <ol> 的 TextView

ios - 如何将 tabBarController 设置为 rootViewController

swift - 协议(protocol)扩展类型 Self 与初始值设定项类型不匹配

php - 登录后的 Paypal API 重定向到空白屏幕