Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved ios app ,after update, load file failed

    Mobile and Embedded
    2
    8
    1045
    Loading More Posts
    • 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.
    • M
      MLGDN last edited by

      I save a file In the application sandbox ,under Documents directory。when my application start, it read the file successfully。but after update from app store, it read failed。it becomes to create a new file。I confused, why the file was not backed up,what i did wrong?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        How are you getting the path for your file to be saved ?

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

        M 1 Reply Last reply Reply Quote 0
        • M
          MLGDN @SGaist last edited by

          @SGaist

          I tried 2 ways.

          at first,I user this way。
          m_Path = QStandardPaths::standardLocations(QStandardPaths::DataLocation).value(0);
          m_Path = m_Path + "/myAppName";

          when I find this problem,I change to another
          m_Path = QDir::homePath() + "/Documents" + "/myAppName";

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            When you say you update from the app store, do you mean through TestFlight or is your application already released ?

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

            M 2 Replies Last reply Reply Quote 0
            • M
              MLGDN @SGaist last edited by

              @SGaist

              my application is already released

              1 Reply Last reply Reply Quote 0
              • M
                MLGDN @SGaist last edited by

                @SGaist

                thanks for you reply!
                can you help me to see another problem what confused me a long time
                https://forum.qt.io/topic/61397/qt5-qopengglwidget-ios

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  AFAIK, the files under Documents should be migrated to the new app version.

                  Out of curiosity, why are you using your application name for that file ?

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

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    MLGDN @SGaist last edited by

                    @SGaist

                    using my application name for that file just for example,I can change to another name,may be I need to commit at least twice in the next time to verify this way。

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post