Lion 沙箱化现有的 Snow Leopard 核心数据应用程序

发布于 2024-12-26 02:59:56 字数 405 浏览 3 评论 0原文

我正在努力将现有的 Snow Leopard 应用商店应用程序迁移到沙盒 Lion 应用程序。作为沙箱的一部分,库路径从 ~/Library 移动到 ~/Library/Containers/appname/Data/Library。

用户默认值自动从 ~/Library/Preferences/app.plist 转移到 ~/Library/Containers/appname/Data/Library/Preferences/app.plist。

但我的核心数据 SQLite 存储不是。我已经搜索过,但找不到与此迁移相关的任何内容。

我需要手动迁移商店还是我在这里遗漏了一些东西?如果我确实必须自己迁移它,我会对如何访问旧的存储文件感到困惑..因为它驻留在〜/ Library,在沙箱化后不再可访问..

非常感谢任何帮助!

I'm going through the effort of migrating an existing Snow Leopard app store application to a sandboxed Lion application. As part of the sandboxing, the Library path moved from ~/Library to ~/Library/Containers/appname/Data/Library.

The user defaults were automagically carried over from ~/Library/Preferences/app.plist to ~/Library/Containers/appname/Data/Library/Preferences/app.plist.

But my core data sqlite store was not. I've searched, but cannot find anything related to this migration.

Do I need to migrate the store manually or am I missing something here? If I do have to migrate it myself, I'm confused with how to access the old store file .. since it resides at ~/Library, which is no longer accessible after being sandboxed..

Any help is much appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吃不饱 2025-01-02 02:59:56
  1. 将名为“container-migration.plist”的新属性列表添加到您的项目中。
  2. 在 PList 编辑器中,添加一个名为“Move”的属性(行)作为数组类型。
  3. 将字符串添加到指向当前应用程序数据文件夹的数组。例如 ${ApplicationSupport}/您的应用程序名称

更多信息请参见:
http://developer.apple.com/library/mac/#documentation/Security/Conceptual/AppSandboxDesignGuide/MigrationALegacyApp/MigrationALegacyApp.html#//apple_ref/doc/uid/TP40011183-CH6-SW1

  1. Add a new Property List called "container-migration.plist" to your project.
  2. In the PList editor, add a property (row) called "Move" as type Array.
  3. Add a string to the array pointing to current app data folder. E.g. ${ApplicationSupport}/Your App Name

More info here:
http://developer.apple.com/library/mac/#documentation/Security/Conceptual/AppSandboxDesignGuide/MigratingALegacyApp/MigratingALegacyApp.html#//apple_ref/doc/uid/TP40011183-CH6-SW1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文