Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. ios app ,after update, load file failed
Forum Updated to NodeBB v4.3 + New Features

ios app ,after update, load file failed

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 2 Posters 1.6k 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.
  • M Offline
    M Offline
    MLGDN
    wrote on 25 May 2016, 02:58 last edited by
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 May 2016, 21:24 last edited by
      #2

      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 26 May 2016, 01:25
      0
      • S SGaist
        25 May 2016, 21:24

        Hi,

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

        M Offline
        M Offline
        MLGDN
        wrote on 26 May 2016, 01:25 last edited by
        #3

        @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
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 26 May 2016, 21:50 last edited by
          #4

          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 27 May 2016, 00:53
          0
          • S SGaist
            26 May 2016, 21:50

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

            M Offline
            M Offline
            MLGDN
            wrote on 27 May 2016, 00:53 last edited by
            #5

            @SGaist

            my application is already released

            1 Reply Last reply
            0
            • S SGaist
              26 May 2016, 21:50

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

              M Offline
              M Offline
              MLGDN
              wrote on 27 May 2016, 08:40 last edited by
              #6

              @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
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 27 May 2016, 20:44 last edited by
                #7

                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 29 May 2016, 08:46
                0
                • S SGaist
                  27 May 2016, 20:44

                  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 ?

                  M Offline
                  M Offline
                  MLGDN
                  wrote on 29 May 2016, 08:46 last edited by
                  #8

                  @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
                  0

                  4/8

                  26 May 2016, 21:50

                  • Login

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