Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Writing IOS app logfiles to public accessible folder QStandardPaths
Forum Updated to NodeBB v4.3 + New Features

Writing IOS app logfiles to public accessible folder QStandardPaths

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 4 Posters 2.4k Views 2 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.
  • E Offline
    E Offline
    esther
    wrote on last edited by esther
    #1

    hi our app runs on windows. android && IOS tablets and phones
    we write logfiles for troubleshooting and customer issues ...

    on windows, using QStandardPaths::writableLocation(QStandardPaths::TempLocation); which works great

    on android I use QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); which allows me to both view && pull logs via myFiles application && adb .... files reside in internalStorage/Document

    but I cant seem to either view or pull logfiles on IOS tablet ...
    I have tried ITunes , and various other file manager and plugging tablet into my desktop .... I tried using various folders like photos which are public

    Do you have any advice on what folder I can write logfiles to on IOS so I can view /or pull them off a tablet ?

    thanks in advance

    J.HilkJ 1 Reply Last reply
    0
    • E esther

      hi our app runs on windows. android && IOS tablets and phones
      we write logfiles for troubleshooting and customer issues ...

      on windows, using QStandardPaths::writableLocation(QStandardPaths::TempLocation); which works great

      on android I use QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); which allows me to both view && pull logs via myFiles application && adb .... files reside in internalStorage/Document

      but I cant seem to either view or pull logfiles on IOS tablet ...
      I have tried ITunes , and various other file manager and plugging tablet into my desktop .... I tried using various folders like photos which are public

      Do you have any advice on what folder I can write logfiles to on IOS so I can view /or pull them off a tablet ?

      thanks in advance

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      Hi @esther
      I am not sure, if you can access Data that way on IOS.
      My guess would be, you need to fall back on native code and either send those files via E-Mail or AirDrop

      But I‘m not so deep into this, mabe someone else knows more.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        esther
        wrote on last edited by
        #3

        thank you but I did not want to go the nativeApi route ... for sure that would work
        I want to keep the solution in the QT space

        1 Reply Last reply
        0
        • timdayT Offline
          timdayT Offline
          timday
          wrote on last edited by
          #4

          On iOS to get at an apps' files you need to enable "file sharing" for an app by setting UIFileSharingEnabled to YES in the plist, and then I think the files will need to be in the app's "Documents" area, and then you can access them via iTunes. It's a bit clunky (especially as so far as I remember iTunes only lets you deal with top level files and won't copy multiple files or directory hierarchies). That's how I was doing things a few years ago anyway; not sure if better ways have appeared since then.

          1 Reply Last reply
          2
          • E Offline
            E Offline
            esther
            wrote on last edited by esther
            #5

            I tried this using ITunes 12.6 and I did not see the file I created using QStandardPaths::DocumentsLocation

            I did use UIFileSharing YES in the plist ...
            Additionally I added LSSupportsOpeningDocumentsInPlace YES

            Here is where QT is putting my logfile based on using Standard path DocumentsLocation
            fullLogFileName=/var/mobile/Containers/Data/Application/50BAE524-BF87-4820-9092-3AB9C8036419/Documents/MyAppName/MyAppLog.txt
            (I created the MyAppName folder)
            I don't believe this is the correct path for ITunes ...
            Should I be using QStandardPaths::AppDataLocation ???

            Has anyone had success ?

            1 Reply Last reply
            0
            • E Offline
              E Offline
              esther
              wrote on last edited by
              #6

              I have updated my Itunes and I am seeing the logfiles now through ITunes ...

              please consider this topic closed

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

                Hi,

                You can mark it as solved using the "Topic Tools" button :)

                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
                0

                • Login

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