本文介绍了Xcode for MacOS Mojave中的C ++项目需要NSCameraUsageDescription的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在尝试在Xcode中运行OpenCV项目,并且似乎有新的需要为C ++应用程序NSCameraUsageDescription提供info.plist.

I am trying to run OpenCV projects in Xcode and it seems like there's a new need to provide an info.plist for C++ applications NSCameraUsageDescription.

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文件,因为以前从未需要它.

How do I go about creating a .plist file for a C++ project as it has never been needed before.

推荐答案

找到了解决方案.将具有所需NSCameraUsageDescription,NSMicrophoneUsageDescription(或其他)的文件与来自XCode的组合文件放在一起(请参见下面的屏幕截图).对于发行版和调试版.

Found a solution. Put the file with the desired NSCameraUsageDescription, NSMicrophoneUsageDescription (or others) with the assembled file from XCode (See screen shots below). For the Release and Debug versions.

这篇关于Xcode for MacOS Mojave中的C ++项目需要NSCameraUsageDescription的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 09:47