简体   繁体   English

如何为在 Xcode 中构建和调试的 macOS 应用程序启用全磁盘访问

[英]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.

相关问题 如何授予对内置于 Xcode 的 mac 应用程序的全盘访问权限 - How to grant full disk access to mac app built in Xcode 无法启动 Xcode 内置的 macOS 应用程序 - Failed to launch macOS app built in Xcode 在xcode中开发safari 10扩展时,如何独立于macOS应用程序执行此操作? - When developing a safari 10 extension in xcode, how do I do that independent of a macOS app? XCode无法在设备上运行app,说正在调试的程序没有运行 - XCode fails to run app on device, saying the program being debugged is not being run 当我运行内置的PhoneGap应用程序时,来自XCode的“找不到开发人员磁盘映像”消息 - 'Could not find Developer Disk Image' message from XCode when I run the built PhoneGap app 使用XCode 8我如何将我的应用程序也定位为在macOS上运行(它已经在iPhone / iPad上运行)? - With XCode 8 How Do I Target My App To Run on macOS also (it already runs on iPhone / iPad)? 如何运行使用xCode构建的OS X应用程序以查看依赖项是否起作用 - How do I run an OS X app built with xCode to see if dependencies work 如何在最新的macOS服务器上运行旧版本的Xcode? - How do I run an old version of Xcode on the latest macOS Server? 如何在Xcode中为iOS应用启用FTS? - How do you enable FTS in Xcode for an iOS app? 如何在 Xcode 中引用使用不同配置构建的依赖项目? - How do I reference a dependent project built with a different configuration in Xcode?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM