Access to IOS Camera Roll, implement .plist failes
I already read a lot about this topic and there are a lot of Informations but it seems that these informations does not suit my brain and I need your help..
I am using the void QFileDialog::setDirectory(const QString &directory) method to get access to the camera Roll on the simulator. I need to implement my own .plist file. I am stucking there, because Qt is showing me this error:
:-1: error: Deployment failed. The settings in the Devices window of Xcode might be incorrect.
What I did is implement my plist file into the .pro file:
... #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 QMAKE_INFO_PLIST = myInfo.plist SOURCES += main.cpp\ ...
My .plist file looks like this:
/<?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>NSPhotoLibraryUsageDescription</key> <string>TEST</string> </dict> </plist>
Is someone able to give me an advice?
Thanks in advance
Hi and welcome to devnet,
From a quick look, your Info.plist file is incomplete. You should re-use the one generated by Qt when building your application and tailor it to your needs.
That was it, thanks!