Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. iOS release build fails (Qt World Summit Conference App)
Qt 6.12 LTS is out! See what's new in the release blog

iOS release build fails (Qt World Summit Conference App)

Scheduled Pinned Locked Moved Solved Mobile and Embedded
20 Posts 3 Posters 7.0k Views 2 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.
  • hskoglundH hskoglund

    Hmm, strange I just downloaded your project, and it worked directly in my iPhone (nice app!), here's my Release build log (relevant parts):

    === BUILD AGGREGATE TARGET Qt Preprocess OF PROJECT c2gQtWS_x WITH CONFIGURATION Release ===
    
    Check dependencies
    
    Write auxiliary files
    write-file /Users/henry/Projects/Paraphernalia/build-c2gQtWS_x-iphoneos_clang_Qt_5_7_0_for_iOS-Release/c2gQtWS_x.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh
    chmod 0755 /Users/henry/Projects/Paraphernalia/build-c2gQtWS_x-iphoneos_clang_Qt_5_7_0_for_iOS-Release/c2gQtWS_x.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh
    write-file /Users/henry/Projects/Paraphernalia/build-c2gQtWS_x-iphoneos_clang_Qt_5_7_0_for_iOS-Release/c2gQtWS_x.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh
    chmod 0755 /Users/henry/Projects/Paraphernalia/build-c2gQtWS_x-iphoneos_clang_Qt_5_7_0_for_iOS-Release/c2gQtWS_x.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh
    
    PhaseScriptExecution Qt\ Qmake c2gQtWS_x.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh
        cd /Users/henry/Projects/Paraphernalia/build-c2gQtWS_x-iphoneos_clang_Qt_5_7_0_for_iOS-Release
        /bin/sh -c \"/Users/henry/Projects/Paraphernalia/build-c2gQtWS_x-iphoneos_clang_Qt_5_7_0_for_iOS-Release/c2gQtWS_x.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh\"
    make[1]: `c2gQtWS_x.xcodeproj/project.pbxproj' is up to date.
    
    PhaseScriptExecution Qt\ Preprocessors c2gQtWS_x.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh
        cd /Users/henry/Projects/Paraphernalia/build-c2gQtWS_x-iphoneos_clang_Qt_5_7_0_for_iOS-Release
        /bin/sh -c \"/Users/henry/Projects/Paraphernalia/build-c2gQtWS_x-iphoneos_clang_Qt_5_7_0_for_iOS-Release/c2gQtWS_x.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh\"
    /Users/henry/Qt/5.7/ios/bin/rcc -name qml ../c2gQtWS_x/qml.qrc -o qrc_qml.cpp
    /Users/henry/Qt/5.7/ios/bin/rcc -name translations ../c2gQtWS_x/translations.qrc -o qrc_translations.cpp
    /Users/henry/Qt/5.7/ios/bin/rcc -name images ../c2gQtWS_x/images.qrc -o qrc_images.cpp
    /Users/henry/Qt/5.7/ios/bin/rcc -name data-assets ../c2gQtWS_x/data-assets.qrc -o qrc_data-assets.cpp
    /Users/henry/Qt/5.7/ios/bin/moc -DDARWIN_NO_CARBON -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D__APPLE__ -D__GNUC__=4 -D__APPLE_CC__ -I/Users/henry/Qt/5.7/ios/mkspecs/macx-ios-clang -I/Users/henry/Projects/Paraphernalia/c2gQtWS_x -I/Users/
    ...
    
    ekkescornerE Offline
    ekkescornerE Offline
    ekkescorner
    Qt Champions 2016
    wrote on last edited by ekkescorner
    #3

    @hskoglund thx.really strange.
    deleted build dir
    cleaned project
    always the same: debug build work, release build fails.

    you're also using Xcode8 ?

    ekke ... Qt Champion 2016 | 2024 ... mobile business apps

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by hskoglund
      #4

      I built your app with 7.3 (can't start 8.0, that silly "have to agree to license" keep popping up in Qt Creator :-(

      ekkescornerE 1 Reply Last reply
      0
      • hskoglundH hskoglund

        I built your app with 7.3 (can't start 8.0, that silly "have to agree to license" keep popping up in Qt Creator :-(

        ekkescornerE Offline
        ekkescornerE Offline
        ekkescorner
        Qt Champions 2016
        wrote on last edited by ekkescorner
        #5

        @hskoglund Xcode8 - I went thru all the problems and also https://bugreports.qt.io/browse/QTCREATORBUG-16968
        it's working for other projects - so it's not a generic problem with Xcode8 I think
        only this project causes release build problems

        ekke ... Qt Champion 2016 | 2024 ... mobile business apps

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #6

          Should google on how to get rid of "Xcode not set up properly.." just a minute..

          ekkescornerE 1 Reply Last reply
          0
          • hskoglundH hskoglund

            Should google on how to get rid of "Xcode not set up properly.." just a minute..

            ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #7

            @hskoglund think it was running xcodebuild -license from terminal

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps

            1 Reply Last reply
            0
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by
              #8

              Did that, not enough. Think I have to edit the mkspecs...

              1 Reply Last reply
              0
              • hskoglundH Offline
                hskoglundH Offline
                hskoglund
                wrote on last edited by
                #9

                https://bugreports.qt.io/browse/QTBUG-56004 did that, didn't help. Maybe because I upgraded to Sierra (macOS 10.11) yesterday :-(
                I have time later tonight, can look into it more then...

                ekkescornerE 1 Reply Last reply
                0
                • hskoglundH hskoglund

                  https://bugreports.qt.io/browse/QTBUG-56004 did that, didn't help. Maybe because I upgraded to Sierra (macOS 10.11) yesterday :-(
                  I have time later tonight, can look into it more then...

                  ekkescornerE Offline
                  ekkescornerE Offline
                  ekkescorner
                  Qt Champions 2016
                  wrote on last edited by
                  #10

                  @hskoglund thx looking into this.

                  ekke ... Qt Champion 2016 | 2024 ... mobile business apps

                  ekkescornerE 1 Reply Last reply
                  0
                  • ekkescornerE ekkescorner

                    @hskoglund thx looking into this.

                    ekkescornerE Offline
                    ekkescornerE Offline
                    ekkescorner
                    Qt Champions 2016
                    wrote on last edited by
                    #11

                    BTW: thinking to clone my app and try it out if it works.
                    At first I want to know if it is safe to manage the same App (same name and content of .pro), but at different file locations in Qt Creator without any trouble.
                    thx for any hints

                    ekke ... Qt Champion 2016 | 2024 ... mobile business apps

                    1 Reply Last reply
                    0
                    • ekkescornerE Offline
                      ekkescornerE Offline
                      ekkescorner
                      Qt Champions 2016
                      wrote on last edited by
                      #12

                      also asked in Interest and Qt Creator List.
                      Eike Ziller found the reason why release build fails under iOS:

                      That’s a crash in Qt Quick Compiler, which looks like it is https://bugreports.qt.io/browse/QTBUG-54482

                      Eike saved my day :)
                      looked at the bugreport and immediately know the reason and fixed it:

                      Timer {
                                  id: autoVersionCheckTimer
                                  interval: 3600000 // 60*60*1000
                                  repeat: false
                                  onTriggered: {
                                      appWindow.doAutoVersionCheck()
                                  }
                              }
                      

                      just built the release, uploaded to AppStore and added build to TestFlight
                      now all projects are working with Qt 5.7 and Xcode8 :)

                      ekke

                      ekke ... Qt Champion 2016 | 2024 ... mobile business apps

                      1 Reply Last reply
                      1
                      • hskoglundH Offline
                        hskoglundH Offline
                        hskoglund
                        wrote on last edited by
                        #13

                        Good news!
                        (yesterday evening I tested building your app on Xcode 8 and it worked fine (of course!), I thought I'd sleep on it. So it was an overflow bug, good it's solved.)
                        Also yesterday I forgot rule #1: always google for the error message first (if you do, you get that QTBUG-54482 as the first hit, the bug report is from June 30) but since it worked for me, it wasn't obvious :-)

                        ekkescornerE 1 Reply Last reply
                        0
                        • hskoglundH hskoglund

                          Good news!
                          (yesterday evening I tested building your app on Xcode 8 and it worked fine (of course!), I thought I'd sleep on it. So it was an overflow bug, good it's solved.)
                          Also yesterday I forgot rule #1: always google for the error message first (if you do, you get that QTBUG-54482 as the first hit, the bug report is from June 30) but since it worked for me, it wasn't obvious :-)

                          ekkescornerE Offline
                          ekkescornerE Offline
                          ekkescorner
                          Qt Champions 2016
                          wrote on last edited by
                          #14

                          @hskoglund I did a search but with the wrong line ;-)

                          so you have no issues with Sierra ?

                          ekke ... Qt Champion 2016 | 2024 ... mobile business apps

                          hskoglundH 1 Reply Last reply
                          0
                          • ekkescornerE ekkescorner

                            @hskoglund I did a search but with the wrong line ;-)

                            so you have no issues with Sierra ?

                            hskoglundH Offline
                            hskoglundH Offline
                            hskoglund
                            wrote on last edited by
                            #15

                            @ekkescorner No Sierra seems quite harmless, I said no to installing Siri and the only new thing seems some new nice wallpapers with the Sierra mountains.
                            However getting Qt Creator 4.10 to build a sample app for iOS required editing 2(!) different .prf files in the mkspecs subdirectory jungle, thankfully it was documented on Stackoverflow. But I think that is more because of Xcode 8 and less because of Sierra.

                            ekkescornerE 1 Reply Last reply
                            1
                            • hskoglundH hskoglund

                              @ekkescorner No Sierra seems quite harmless, I said no to installing Siri and the only new thing seems some new nice wallpapers with the Sierra mountains.
                              However getting Qt Creator 4.10 to build a sample app for iOS required editing 2(!) different .prf files in the mkspecs subdirectory jungle, thankfully it was documented on Stackoverflow. But I think that is more because of Xcode 8 and less because of Sierra.

                              ekkescornerE Offline
                              ekkescornerE Offline
                              ekkescorner
                              Qt Champions 2016
                              wrote on last edited by
                              #16

                              @hskoglund good to know. and yes: the mkspecs changes are caused by Xcode8.

                              ekke ... Qt Champion 2016 | 2024 ... mobile business apps

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

                                I confirm it's Xcode 8 that changed some stuff again. The next round of Qt releases are already fixed.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                ekkescornerE 1 Reply Last reply
                                0
                                • hskoglundH Offline
                                  hskoglundH Offline
                                  hskoglund
                                  wrote on last edited by
                                  #18

                                  Yes indeed I just discovered, Xcode 8 has really moved my cheese.
                                  For many years I've had my Xcode keyboard plugin, but now Xcode 8 has obsoleted that and introduced "Xcode source editor extensions".
                                  Reminds me of when Microsoft changed the Visual Studio plugin infrastructure for VS2015 (was bad news for the Qt VS Addin) Apple had to do same kind of "improvement" now :-(

                                  1 Reply Last reply
                                  1
                                  • SGaistS SGaist

                                    I confirm it's Xcode 8 that changed some stuff again. The next round of Qt releases are already fixed.

                                    ekkescornerE Offline
                                    ekkescornerE Offline
                                    ekkescorner
                                    Qt Champions 2016
                                    wrote on last edited by
                                    #19

                                    @SGaist said in iOS release build fails (Qt World Summit Conference App):

                                    I confirm it's Xcode 8 that changed some stuff again. The next round of Qt releases are already fixed.

                                    yep - new Qt releases will help with mkspec changes
                                    but there are also changes required in .pro because Xcode has new requirements for signing apps
                                    I had to add under ios/:

                                    QMAKE_XCODE_CODE_SIGN_IDENTITY = "iPhone Developer"
                                    MY_DEVELOPMENT_TEAM.name = DEVELOPMENT_TEAM
                                    MY_DEVELOPMENT_TEAM.value = XXX42XXX42
                                    QMAKE_MAC_XCODE_SETTINGS += MY_DEVELOPMENT_TEAM
                                    

                                    where team value can be found at Apple Developer/account membership
                                    using Xcode 7.3 there's no need to add this

                                    ekke ... Qt Champion 2016 | 2024 ... mobile business apps

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

                                      I saw some people already experiencing an issue with that.

                                      Seems like Xcode 8 is a bit less intuitive...

                                      Thanks for the hint

                                      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

                                      • Login

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