I need help with Qt 5.2-beta1 and iOS deploy to device



  • Hi everyone!

    Today I tried to use Qt for iOS. I created the application with iOS template using QtCreator project wizard but when I try to build the project to my device I receiving this error:
    @20:37:54: TransferAppSession(93166a8c564bbfb5751de77ba9fb0b5f84b867c1, /Volumes/Documents/MyWork/PROJECTS/QtProjects/Local/build-test_ios-iphoneos_clang_Qt_5_2_0_ios_armv7-Debug/Debug-iphoneos/test_ios.app)startService on device 93166a8c564bbfb5751de77ba9fb0b5f84b867c1 failed, AMDeviceStartService returned -402653057

    Error while building/deploying project test_ios (kit: iphoneos-clang Qt 5.2.0 (ios_armv7))
    When executing step 'Deploy to Andrew's iPhone 5S'@

    On my device the developing mode is enabled because I use it for build iOS application from Xcode. I have all certificates and provision for developing project. What I do wrong?

    Also in my QtCreator the simulator version of Qt in Kit section is red. I can't understand why, because all compilers and paths looks good.

    Thanks for the any help!


  • Lifetime Qt Champion

    Hi,

    I didn't test Qt Creator yet, but in between you can use Xcode to deploy
    your application. Simply use the macx-xcode mkspec when calling qmake and open that project

    Hope it helps



  • [quote author="SGaist" date="1383772070"]Hi,

    I didn't test Qt Creator yet, but in between you can use Xcode to deploy
    your application. Simply use the macx-xcode mkspec when calling qmake and open that project

    Hope it helps[/quote]

    Thanks for the answer. Yes It's works! But I found a issues with it :) You need set default interface orientation to the application. Because when you run it the application will crashed. This can be fix very simple, if you know how to set interface orientations to the application :).

    If I remember correctly, this bug was in the first variant of iOS integration with convertation to xcode project. Maybe I need to create some story in bugtracker?


  • Lifetime Qt Champion

    If you found a way to repeatedly make this crash happen, sure, do it. Provide a minimal compilable example and the steps to reproduce it (also if you need to modify Xcode parameters)



  • [quote author="SGaist" date="1383777416"]If you found a way to repeatedly make this crash happen, sure, do it. Provide a minimal compilable example and the steps to reproduce it (also if you need to modify Xcode parameters)[/quote]

    I posted a "bug":https://bugreports.qt-project.org/browse/QTBUG-34648 to jira. But is happens only for QtQuick projects (I created a QtQuick 2 project). When I try to build Widget project all works fine. But for 4-inch devices you needs to create a special file 'Default-568h@2x.png' with size 640x1136. It's needs to use full screen size but this is a small issue :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.