Qt Forum

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

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Publishing on the App Store using Qt Creator

    Mobile and Embedded
    5
    22
    4662
    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.
    • P
      philippeb8 last edited by

      So:

      • I am able to run my app on the iPhone using Qt Creator
      • I am unable to run the app on the iPhone using XCode 3.2 (crashes)

      How do I publish to the App Store without XCode since the XCode version of my app crashes? Thanks!

      1 Reply Last reply Reply Quote 0
      • P
        philippeb8 last edited by

        It crashes here. I don't know why a call to OpenGL is involved:

        #0 EAGLContext_renderbufferStorageFromDrawable
        #1 QIOSContext::backingFramebufferObjectFor
        #2 QIOSContext::makeCurrent
        #3 ...
        #4 QOpenGLConext::makeCurrent
        ...

        1 Reply Last reply Reply Quote 0
        • benlau
          benlau Qt Champions 2016 last edited by

          Are you sure you are using XCode 3.2? It is rather old. Did you installed more then one of version of XCode?

          1 Reply Last reply Reply Quote 0
          • P
            philippeb8 last edited by

            I did install XCode 3.4 - beta and it crashes when I try to select the libraries

            1 Reply Last reply Reply Quote 0
            • M
              mcosta last edited by

              Hi,

              the last XCode version is 6.3, why you need to use a so old version?

              Once your problem is solved don't forget to:

              • Mark the thread as SOLVED using the Topic Tool menu
              • Vote up the answer(s) that helped you to solve the issue

              You can embed images using (http://imgur.com/) or (http://postimage.org/)

              1 Reply Last reply Reply Quote 0
              • P
                philippeb8 last edited by

                Sorry I meant I have version 6.2. Version 6.4 - beta crashes

                1 Reply Last reply Reply Quote 0
                • benlau
                  benlau Qt Champions 2016 last edited by

                  I am using XCode 6.3. It is fine. And it don't have such problem when I was still using 6.2.

                  Since Qt Creator is also using XCode to build and upload. It is quite strange.

                  Could you tell us how you build your code with XCode 6.2?

                  1 Reply Last reply Reply Quote 0
                  • P
                    philippeb8 last edited by

                    I'm not in front of my computer right now but I run something like:
                    $ qmake project.pro -specs macx-g++ CONFIG+=release ...

                    Then I launch XCode on that new generated .xcodeprj, add some libraries, build, run on hte iPhone and poof it crashes. I did a clean build, etc.

                    1 Reply Last reply Reply Quote 0
                    • benlau
                      benlau Qt Champions 2016 last edited by benlau

                      1. Please verify the argument of spec. Is that " -spec macx-ios-clang" ?

                      2. Why you need to add extra library in XCode? But that is not needed in Qt Creator?

                      1 Reply Last reply Reply Quote 0
                      • P
                        philippeb8 last edited by

                        1. No it's macx-g++

                        2. The libraries I'm adding are from subdirs in my own project so they're okay.

                        benlau 1 Reply Last reply Reply Quote 0
                        • benlau
                          benlau Qt Champions 2016 @philippeb8 last edited by

                          @philippeb8 Then you should try " -spec macx-ios-clang" .

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            philippeb8 last edited by

                            Thanks I will try that tonight

                            1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User last edited by

                              Just to mention it, make sure you have the right to publish your app on the app store.
                              Citation http://www.qt.io/download/ : Community license -> Mobile app distribution through public app stores -> Prohibited by Apple iOS App Store terms and conditions.

                              P 1 Reply Last reply Reply Quote 0
                              • mrdebug
                                mrdebug last edited by

                                Are you using qml?
                                I have a similar problem. Please, have a look:
                                https://bugreports.qt.io/browse/QTBUG-44705

                                Need programmers to hire?
                                www.labcsp.com
                                www.denisgottardello.it
                                GMT+1
                                Skype: mrdebug

                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  philippeb8 @Guest last edited by

                                  @kalsan Interesting... thanks

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    philippeb8 @mrdebug last edited by

                                    @mrdebug No I am not using QML but native widgets

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      philippeb8 @benlau last edited by

                                      @benlau When I do that the folder project.xcodeproj is not updated... and my app still crashes. Only after using "-spec macx-g++" it gets updated.

                                      P 1 Reply Last reply Reply Quote 0
                                      • P
                                        philippeb8 @philippeb8 last edited by

                                        @philippeb8 Note that my project is recursive and I think the .xcodeproj is generated inside another folder. But I still have the same crash.

                                        P 1 Reply Last reply Reply Quote 0
                                        • P
                                          philippeb8 @philippeb8 last edited by

                                          @philippeb8 I am going to try to merge all of my subfolders into one giant project

                                          P 1 Reply Last reply Reply Quote 0
                                          • P
                                            philippeb8 @philippeb8 last edited by

                                            @philippeb8 Nope; I have exactly the same crash. I see that Xcode adds threads and Qt is calling OpenGL routines even if there is no OpenGL module added... I will try to add qDebug() statements

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