[英]How do I enable Full Disk Access for a macOS app being built and debugged in Xcode
I have an app that accesses system files.我有一个访问系统文件的应用程序。 When I built and archive the app, I'm able to drag that app into the Settings > Security & Privacy > Privacy > Full Disk Access and grant it full permissions当我构建并存档应用程序时,我可以将该应用程序拖到设置 > 安全和隐私 > 隐私 > 完整磁盘访问并授予它完全权限
However, when the app is built using Xcode, how do I enable this?但是,当使用 Xcode 构建应用程序时,我该如何启用它? I don't know where Xcode stores a temporary binary that is running within Xcode.我不知道 Xcode 在哪里存储在 Xcode 中运行的临时二进制文件。 If I don't have the path, I can't grant it permission.如果我没有路径,则无法授予它权限。
How do I enable Full Disk Access to an app that is being built and archived within Xcode and has not been archived yet如何启用对正在 Xcode 中构建和存档但尚未存档的应用程序的全磁盘访问
I don't know where Xcode stores a temporary binary that is running within Xcode我不知道 Xcode 在哪里存储在 Xcode 中运行的临时二进制文件
In the Project Navigator look for the Products group and click on its disclosure triangle to see the files within.在 Project Navigator 中查找 Products 组并单击其显示三角形以查看其中的文件。 There is an entry for every product - compiled app, library etc. - the project produces (these entries are red if not built yet).每个产品都有一个条目 - 已编译的应用程序、库等 - 项目生成(如果尚未构建,这些条目为红色)。 Right-click on your app and select Show in Finder.右键单击您的应用程序,然后选择在 Finder 中显示。 HTH HTH
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.