Finder 与 App Sandbox OFF 同步无法正常工作

Finder Sync with App Sandbox OFF not working

我创建了一个简单的 Finder Sync (FinderSync) 扩展程序 (appex),它默认带有 App Sandbox ON(在 .entitlements com.apple.security.app-sandbox true 中)。

一切正常,但我需要通过此扩展程序访问 macOS 上的特定文件夹,而我无法在启用沙盒的情况下执行此操作。

我禁用了沙箱,但扩展程序不再加载到 Finder 中。 对此有什么想法吗?任何解决方法?

Finder 同步扩展必须是沙盒。我无法在任何地方找到明确记录此要求,但如果未沙盒化,系统日志中会出现以下错误:

pkd[255]: ignoring mis-configured plug-in at /Applications/Liferay\ Sync.app/Contents/PlugIns/LiferayFinderSync.appex: plug-ins must be sandboxed

如果您需要访问应用程序容器外的文件夹,您可以像 "com.apple.security.temporary-exception.files.home-relative-path.read-only" 一样使用 temporary exception entitlements。请注意,使用这些权利提交到 Mac App Store 的应用可能会被拒绝。