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. Error while building/deploying project on ios

Error while building/deploying project on ios

Scheduled Pinned Locked Moved QML and Qt Quick
11 Posts 9 Posters 9.7k Views
  • 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.
  • D Offline
    D Offline
    DerHandwerk
    wrote on last edited by
    #1

    Hi,

    currently I am trying out the new capabilities of Qt-Creator 3-rc1 with Qt5.2 for ios and I am not able to deploy my application to my iPhone (deployment in the simulator works). My iPhone is in Developer-Mode and deployment from within XCode is working. According to Preferences / Devices my iPhone is 'Ready to use'.

    Error message from Qt-Creator:

    ** BUILD SUCCEEDED **

    19:52:40: The process "/usr/bin/make" exited normally.
    19:52:40: TransferAppSession(67b7e62113cf9151d3a2d217e027bac2af119557, /Users/***/build-untitled5-iphoneos_clang_Qt_5_2_0_ios-Debug/Debug-iphoneos/untitled5.app)startService on device 67b7e62113cf9151d3a2d217e027bac2af119557 failed, AMDeviceStartService returned -402653057

    Error while building/deploying project untitled5 (kit: iphoneos-clang Qt 5.2.0 (ios))
    When executing step 'Deployment auf iPhone von ***'
    19:52:40: Elapsed time: 00:19.

    Any help is appreciated. :-D

    1 Reply Last reply
    1
    • J Offline
      J Offline
      johnc
      wrote on last edited by
      #2

      I am also getting the same issue on two different Macs.

      If I open the project in Xcode it deploys fine. But when running from QTCreator it fails with the following errors.

      :-1: error: Deployment failed. The settings in the Organizer window of Xcode might be incorrect.

      ** BUILD SUCCEEDED **

      09:47:22: The process "/usr/bin/make" exited normally.
      09:47:23: TransferAppSession(2478af37f828e8f5722ab0ed9f9984ad79eb689a, /Users/john/build-test2-iphoneos_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphoneos/test2.app)startService on device 2478af37f828e8f5722ab0ed9f9984ad79eb689a failed, AMDeviceStartService returned -402653057

      Error while building/deploying project test2 (kit: iphoneos-clang Qt 5.2.0 for iOS)
      When executing step 'Deploy to jiPhone'
      09:47:23: Elapsed time: 00:06.

      System Details

      Qt Creator 3.0.0
      Based on Qt 5.2.0 (Clang 4.2 (Apple), 64 bit)
      Built on Dec 10 2013 at 12:18:28
      From revision 27d10d8dcd

      iTunes 11.1.3 (8)

      Xcode Version 5.0.2 (5A3005)

      1 Reply Last reply
      1
      • J Offline
        J Offline
        johnc
        wrote on last edited by
        #3

        We managed to get it working by ensuring Xcode and iTunes was closed, then disconnecting and reconnecting the iPhone a number of times.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vtong
          wrote on last edited by
          #4

          I have the same problem.
          Here how I solved:

          • Go to Xcode, connect my device to Xcode automatic create provisioning profiles.
          • Go to QtCreator and set up Qt iOS Device kit, select the iPad I connected.
          1 Reply Last reply
          0
          • E Offline
            E Offline
            elfc2000
            wrote on last edited by
            #5

            i find the error,may be it's some path error;

            TransferAppSession(/Users/kang/Qt5.2.0/5.2.0/ios/examples/build-gestures-iphoneos_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphoneos/imagegestures.app,942d0a73d711f802f241acf1783823479d33b690) failed, AMDeviceTransferApplication returned -402653183

            The path /Users/kang/Qt5.2.0/5.2.0/ios/examples/build-gestures-iphoneos_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphoneos/imagegestures.app not exist.

            The real path is :

            /Users/kang/Qt5.2.0/5.2.0/ios/examples/build-gestures-iphoneos_clang_Qt_5_2_0_for_iOS-Debug/imagegestures/Debug-iphoneos/imagegestures.app

            1 Reply Last reply
            1
            • F Offline
              F Offline
              fawzi
              wrote on last edited by
              #6

              I became aware of this through https://bugreports.qt-project.org/browse/QTCREATORBUG-11813 , please submit bugs when you find issues to ensure that they don't get lost.

              There seem to be two issues here:

              1. unreliable deploying which should have been solved in final/3.0.1

              2. issues with subdir projects, fixed in the 3.1 branch https://codereview.qt-project.org/#change,80503

              1 Reply Last reply
              0
              • R Offline
                R Offline
                rosetter
                wrote on last edited by
                #7

                I got the same error message, also in a setup where Xcode was working correctly. I believe the problem was that there were two versions of my Developer Certificate in my keychain, one of which was expired. Xcode uses the only valid one. After deleting the expired cert and re-running qmake I can now deploy from Creator. I'm using 3.1.1 / Qt 5.3, which are supposed to have fixed the referenced bug. Note that it could have been something else I did that fixed the problem... ymmv!

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

                  @ rosetter

                  Can you update the bug report with your information, it might give the iOS plugin developers some clue to improve it.

                  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
                  • R Offline
                    R Offline
                    rosetter
                    wrote on last edited by
                    #9

                    That bug was closed, so I created a new one.

                    But I was about to post that my problem was not, in fact, solved.

                    I'm not sure yet what conditions trigger it, but the error comes back. The solution that works now is unplug iPhone, plug back in. Go figure.

                    C 1 Reply Last reply
                    0
                    • R rosetter

                      That bug was closed, so I created a new one.

                      But I was about to post that my problem was not, in fact, solved.

                      I'm not sure yet what conditions trigger it, but the error comes back. The solution that works now is unplug iPhone, plug back in. Go figure.

                      C Offline
                      C Offline
                      che1404
                      wrote on last edited by
                      #10
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • Q Offline
                        Q Offline
                        QCharacter
                        wrote on last edited by
                        #11

                        Restarting the target Device worked for me. However, to delete any previously installed Application, delete it via XCode and not manually from the device {Delete App} and then restart. If already deleted manually, simply restart the target device. Tested on Qt 5.15.9 and iPad 6th gen and OS 14.0

                        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