Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Access to IOS Camera Roll, implement .plist failes
Forum Updated to NodeBB v4.3 + New Features

Access to IOS Camera Roll, implement .plist failes

Scheduled Pinned Locked Moved Solved General and Desktop
iosios camera rollios plist
3 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    QtDeveloping94
    wrote on last edited by
    #1

    Hi,
    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Q Offline
        Q Offline
        QtDeveloping94
        wrote on last edited by
        #3

        @QtDeveloping94 said in Access to IOS Camera Roll, implement .plist failes:

        NSPhotoLibraryUsageDescription

        That was it, thanks!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved