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. Publishing on the App Store using Qt Creator
QtWS25 Last Chance

Publishing on the App Store using Qt Creator

Scheduled Pinned Locked Moved Mobile and Embedded
22 Posts 5 Posters 6.4k 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.
  • P Offline
    P Offline
    philippeb8
    wrote on last edited by
    #1

    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
    0
    • P Offline
      P Offline
      philippeb8
      wrote on last edited by
      #2

      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
      0
      • benlauB Offline
        benlauB Offline
        benlau
        Qt Champions 2016
        wrote on last edited by
        #3

        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
        0
        • P Offline
          P Offline
          philippeb8
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mcosta
            wrote on last edited by
            #5

            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
            0
            • P Offline
              P Offline
              philippeb8
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • benlauB Offline
                benlauB Offline
                benlau
                Qt Champions 2016
                wrote on last edited by
                #7

                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
                0
                • P Offline
                  P Offline
                  philippeb8
                  wrote on last edited by
                  #8

                  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
                  0
                  • benlauB Offline
                    benlauB Offline
                    benlau
                    Qt Champions 2016
                    wrote on last edited by benlau
                    #9
                    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
                    0
                    • P Offline
                      P Offline
                      philippeb8
                      wrote on last edited by
                      #10
                      1. No it's macx-g++

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

                      benlauB 1 Reply Last reply
                      0
                      • P philippeb8
                        1. No it's macx-g++

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

                        benlauB Offline
                        benlauB Offline
                        benlau
                        Qt Champions 2016
                        wrote on last edited by
                        #11

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

                        P 1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          philippeb8
                          wrote on last edited by
                          #12

                          Thanks I will try that tonight

                          1 Reply Last reply
                          0
                          • ? Offline
                            ? Offline
                            A Former User
                            wrote on last edited by
                            #13

                            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
                            0
                            • mrdebugM Offline
                              mrdebugM Offline
                              mrdebug
                              wrote on last edited by
                              #14

                              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
                              0
                              • ? A Former User

                                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 Offline
                                P Offline
                                philippeb8
                                wrote on last edited by
                                #15

                                @kalsan Interesting... thanks

                                1 Reply Last reply
                                0
                                • mrdebugM mrdebug

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

                                  P Offline
                                  P Offline
                                  philippeb8
                                  wrote on last edited by
                                  #16

                                  @mrdebug No I am not using QML but native widgets

                                  1 Reply Last reply
                                  0
                                  • benlauB benlau

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

                                    P Offline
                                    P Offline
                                    philippeb8
                                    wrote on last edited by
                                    #17

                                    @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
                                    0
                                    • P philippeb8

                                      @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 Offline
                                      P Offline
                                      philippeb8
                                      wrote on last edited by
                                      #18

                                      @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
                                      0
                                      • P philippeb8

                                        @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 Offline
                                        P Offline
                                        philippeb8
                                        wrote on last edited by
                                        #19

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

                                        P 1 Reply Last reply
                                        0
                                        • P philippeb8

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

                                          P Offline
                                          P Offline
                                          philippeb8
                                          wrote on last edited by
                                          #20

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

                                          • Login

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