gpt4 book ai didi

c++ - Xcode for MacOS Mojave 中的 C++ 项目需要 NSCameraUsageDescription

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:15:30 26 4
gpt4 key购买 nike

我正在尝试在 Xcode 中运行 OpenCV 项目,似乎需要为 C++ 应用程序 NSCameraUsageDescription 提供一个 info.plist。

2018-09-28 00:03:15.181948+0800 k_nearest_detector_v2[23505:710470] [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description.  The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.
Program ended with exit code: 9

我该如何着手为 C++ 项目创建一个 .plist 文件,因为它以前从未被需要过。

最佳答案

找到解决方案。将包含所需 NSCameraUsageDescription、NSMicrophoneUsageDescription(或其他)的文件与来自 XCode 的组装文件放在一起(请参见下面的屏幕截图)。对于 Release 和 Debug 版本。 Products-> Right Click-> Show in Finder "Info.plist"

关于c++ - Xcode for MacOS Mojave 中的 C++ 项目需要 NSCameraUsageDescription,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52541086/

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