App沙箱/iCloud和Snow Leopard向后兼容 [英] App Sandbox/iCloud and Snow Leopard backwards compatibility

查看:272
本文介绍了App沙箱/iCloud和Snow Leopard向后兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,所有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的用户,我希望在尽可能长的时间内支持它.

解决方案

启用权利和沙箱后,仍将构建目标保持在10.6,我能够使我的应用程序达到最高速度,使其可以在Lion的沙箱中运行.例如.文件访问,日历访问,网络摄像头访问.

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

因此,有了它,向后兼容性的简短答案是是".尽管有谁说,一旦3月1日流行,Apple不会限制将10.6目标版本上传到Mac App Store?可能不会,但最终会发生.我不是想谣言之类的,只是个想法而已.

无论如何,我希望苹果继续让我们支持Snow Leopard用户,因为我想他们仍然是Mac用户中的大多数.带着一粒盐拿这篇文章,但还是...

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

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.

解决方案

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

这篇关于App沙箱/iCloud和Snow Leopard向后兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆