如何为在 Xcode 中构建和调试的 macOS 应用程序启用全磁盘访问 [英] How do I enable Full Disk Access for a macOS app being built and debugged in Xcode

查看:35
本文介绍了如何为在 Xcode 中构建和调试的 macOS 应用程序启用全磁盘访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个访问系统文件的应用程序.当我构建并存档应用程序时,我可以将该应用程序拖到设置 > 安全性和;隐私 > 隐私 > 全盘访问并授予其完全权限

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

但是,当使用 Xcode 构建应用程序时,我该如何启用它?我不知道 Xcode 在哪里存储在 Xcode 中运行的临时二进制文件.如果我没有路径,我就不能授予它权限.

However, when the app is built using Xcode, how do I enable this? I don't know where Xcode stores a temporary binary that is running within Xcode. If I don't have the path, I can't grant it permission.

如何为正在 Xcode 中构建和存档但尚未存档的应用启用全磁盘访问

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 在哪里存储在 Xcode 中运行的临时二进制文件

I don't know where Xcode stores a temporary binary that is running within Xcode

在项目导航器中查找产品组并单击其显示三角形以查看其中的文件.每个产品都有一个条目 - 编译的应用程序、库等 - 项目生成(如果尚未构建,这些条目是红色的).右键单击您的应用并选择在 Finder 中显示.HTH

In the Project Navigator look for the Products group and click on its disclosure triangle to see the files within. 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. HTH

这篇关于如何为在 Xcode 中构建和调试的 macOS 应用程序启用全磁盘访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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