[Interest] MacOS Plists?
Jason H
jhihn at gmx.com
Tue Jan 7 23:16:47 CET 2020
When I attempt to debug my app on MacOS:
[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.
However when I just run it, it works
In retaliation to the message, I added to my .pro:
QT += quick multimedia
CONFIG += c++11
CONFIG -= bitcode
#added for crashing debugger:
macx {
QMAKE_INFO_PLIST = osx/Info.plist
}
And made sure:
<key>NSCameraUsageDescription</key>
<string>Capture test image</string>
Was in the .plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleGetInfoString</key>
<string>Created by Qt/QMake</string>
<key>CFBundleIconFile</key>
<string>${ASSETCATALOG_COMPILER_APPICON_NAME}</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.1</string>
<key>CFBundleSignature</key>
<string>${QMAKE_PKGINFO_TYPEINFO}</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSCameraUsageDescription</key>
<string>Capture test image</string>
<key>NSMicrophoneUsageDescription</key>
<string>Record test tone</string>
</dict>
</plist>
However, this did not help the problem.
Does anyone what I'm missing?
More information about the Interest
mailing list