gpt4 book ai didi

cocoa - Finder 与应用程序沙箱同步关闭无法正常工作

转载 作者:行者123 更新时间:2023-12-03 16:30:32 28 4
gpt4 key购买 nike

我创建了一个简单的 Finder Sync (FinderSync) 扩展 (appex),默认情况下,应用程序沙盒处于打开状态(在 .entitlements com.apple.security.app-sandbox 中为 true)。

一切正常,但我需要通过此扩展访问 macOS 上的特定文件夹,而在打开沙箱的情况下无法做到这一点。

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

最佳答案

Finder Sync 扩展程序必须经过沙盒处理。我找不到任何地方明确记录此要求,但如果未沙箱化,您的系统日志中会出现以下错误:

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

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

关于cocoa - Finder 与应用程序沙箱同步关闭无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45330168/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com