应用程序沙盒/iCloud 和 Snow Leopard 向后兼容性

发布于 2024-12-24 03:06:05 字数 488 浏览 1 评论 0原文

到目前为止,所有 Mac App Store 开发人员都知道,所有应用程序都必须启用新的 OSX Lion Sandboxing。对于现有应用程序,我们必须在 XCode 4.2 中启用它并设置数据迁移 plist。

因此,我现有的 Mac App Store 应用程序的构建目标是 OSX 10.6.8 Snow Leopard。不仅如此,它还可以访问网络摄像头,并通过 CalendarStore API 和 AppleScript 将内容同步到 iCal。我预计当我启用沙箱时,我的大部分应用程序都会崩溃,但是当我在沙箱中运行时,我想知道沙箱应用程序是否可以在 Snow Leopard 中运行。

有人有迁移到 Mac App Sandbox 的经验吗?我想知道启用此功能是否会破坏 Snow Leopard 兼容性,以及考虑到我的应用程序所需的权利,我将面临什么。

Snow Leopard 是一个非常棒的操作系统,我愿意尽可能长时间地支持它,对于那些 Mac 还不够新、无法运行 Lion 的用户来说。

By now all Mac App Store developers know that all apps must have the new OSX Lion Sandboxing enabled going forward. For existing apps, we must enable it in XCode 4.2 and set in place the data migration plist.

So my existing Mac App Store app has a build target of OSX 10.6.8 Snow Leopard. Not only that, but it does access the webcam and also synchronizes stuff to iCal via CalendarStore API and AppleScript. I'm expecting most of my app to break when I enable the Sandbox, but when I get that working in the Sandbox I'm wondering if a Sandboxed app can run in Snow Leopard.

Does anybody have experience in migrating to the Mac App Sandbox? I would like to know if enabling this would break Snow Leopard compatibility, and what I am up against given the entitlements my app will require.

Snow Leopard is an awesome OS and I'd like to support it as long as reasonably possible, for those users who have a Mac not quite new enough to run Lion.

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

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

发布评论

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

评论(1

一个人的旅程 2024-12-31 03:06:05

在启用权利和沙箱同时仍将构建目标保持为 10.6 后,我能够让我的应用程序加快速度,以便它在 Lion 的沙箱中运行。例如文件访问、日历访问、网络摄像头访问。

处理完之后,我构建了一个 .pkg 文件并将其安装在运行 Snow Leopard 的旧 Mac Mini 上。它似乎像以前一样在 Snow Leopard 中运行。与 Lion 不同,它不会迁移您的配置和 plist 定义的文件夹,因为在 Snow Leopard 下运行时,编译的沙箱内容似乎被完全忽略(这是有道理的,因为 Lion 内核可能正在完成所有工作)。

所以你已经知道了,向后兼容性的简短答案是“是”。不过谁能说苹果不会在 3 月 1 日到来后限制 10.6 目标版本上传到 Mac App Store?也许不会,但它最终会发生。我并不是想制造谣言或什么,这只是一个想法。

无论如何,我希望苹果继续让我们支持 Snow Leopard 用户,因为我想他们仍然是 Mac 用户的大多数。对这篇文章持保留态度,但仍然...

http://www.theverge.com/2011/11/11/2554009/mac-os-x-lion-adoption-slowing

After enabling entitlements and sandbox while still keeping the build target as 10.6, I was able to get my app up to speed so it operates within the sandbox in Lion. E.g. file access, calendar access, webcam access.

Once I had that taken care of, I built a .pkg file and installed it on my old Mac Mini running Snow Leopard. It seems to run in Snow Leopard just as it did before. Unlike Lion, it won't migrate your config and plist-defined folders as it seems the sandbox stuff that is compiled in is completely ignored when run under Snow Leopard (which makes sense since the Lion kernel is probably doing all the work).

So there you have it, the short answer for backwards compatibility is "Yes". Although who is to say Apple won't restrict 10.6 targeted builds from being uploaded to the Mac App Store once March 1st hits? Probably not, but it will happen eventually. I'm not trying to start a rumor or anything, it's just a thought.

Anyways, I hope Apple continues to let us support Snow Leopard users, as I imagine they are still the majority of the Mac users out there. Take this article with a grain of salt, but still...

http://www.theverge.com/2011/11/11/2554009/mac-os-x-lion-adoption-slowing

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