Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. This mkspec requires Xcode 4.3 or later
QtWS25 Last Chance

This mkspec requires Xcode 4.3 or later

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
20 Posts 5 Posters 3.6k 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.
  • K Offline
    K Offline
    kgregory
    wrote on last edited by
    #1

    I've been compiling my iOS app using Qt5.11.1. I wanted to compile with an older version, 5.9.3, which I had un-installed. So I re-installed it and now when I target Qt 5.9.3 for iOS, I an error "This mkspec requires Xcode 4.3 or later". I'm using Xcode 10, so I don't understand why I'm getting this error. I am still able to compile successfully using Qt 5.11.1 without seeing this error. Can anyone help?

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

      Hi,

      One thing you can try is to replace the mac related mkspecs from Qt 5.9 by the one from 5.11.

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

      K 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        One thing you can try is to replace the mac related mkspecs from Qt 5.9 by the one from 5.11.

        K Offline
        K Offline
        kgregory
        wrote on last edited by
        #3

        @SGaist how do I do that?

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

          Copy the files from the mkspecs/features/mac folder over.

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

          K 1 Reply Last reply
          0
          • SGaistS SGaist

            Copy the files from the mkspecs/features/mac folder over.

            K Offline
            K Offline
            kgregory
            wrote on last edited by
            #5

            @SGaist Hmm that didn't seem to do anything

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

              What do you get if you call xcodebuild -version | grep Xcode | sed -e 's/Xcode //' | sed -e 's/\..*//' in a terminal ?

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

              K 1 Reply Last reply
              0
              • SGaistS SGaist

                What do you get if you call xcodebuild -version | grep Xcode | sed -e 's/Xcode //' | sed -e 's/\..*//' in a terminal ?

                K Offline
                K Offline
                kgregory
                wrote on last edited by
                #7

                @SGaist I get "10"

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

                  Can you put message("Test: $$QMAKE_XCODE_VERSION") in a .pro file and show the result ?

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

                    @SGaist said in This mkspec requires Xcode 4.3 or later:

                    message("Test: $$QMAKE_XCODE_VERSION")

                    I put that at the top of my .pro file but I don't see the result anywhere in any of the console windows when I run qmake or build.

                    I'm thinking of re-installing Qt from scratch... this is exhausting...

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

                      That's strange... You should at least get "Test:" printed.

                      Did you try with a more recent version of 5.9 ? IIRC the current is 5.9.6.

                      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
                      • K Offline
                        K Offline
                        kgregory
                        wrote on last edited by
                        #11

                        When I run it with Qt 5.11.1 as the target, I get "9.4.1".

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          kgregory
                          wrote on last edited by
                          #12

                          It says the error occurs while parsing my .pro file. I don't know if that means anything to you, but I assume that if it fails to parse, then it's not going to print the message.

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

                            What if you put it in an empty pro file ?

                            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
                            • K Offline
                              K Offline
                              kgregory
                              wrote on last edited by
                              #14

                              When I created a new project and compile for Qt 5.11.1, it returns 10.0. When I compile for 5.9.3, I get the Xcode 4.3 error.

                              1 Reply Last reply
                              0
                              • K Offline
                                K Offline
                                kgregory
                                wrote on last edited by
                                #15

                                Well, I re-installed Qt from scratch and nothing changed. :-(

                                I'm using Qt 5.11.2 now instead of 5.11.1, though.

                                1 Reply Last reply
                                0
                                • K Offline
                                  K Offline
                                  kgregory
                                  wrote on last edited by kgregory
                                  #16

                                  Ok, I installed 5.10.2 and am able to compile and deploy with that. Furthermore, it solves my problem. Apparently, whatever bug I encountered was introduced between then and 5.11.1.

                                  Here is the thread for the bug I was dealing with: https://forum.qt.io/topic/95085/qlowenergyservice-never-completes-discovery/2

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

                                    Did you check whether the bug report system has something related ?

                                    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
                                    • AndySA Offline
                                      AndySA Offline
                                      AndyS
                                      Moderators
                                      wrote on last edited by
                                      #18

                                      After you did the copy of the mkspecs, you need to make sure you remove any .qmake.stash files that it has in the directory or parent directories as it may be reusing those. Other than that, upgrading Qt 5.9.x might help too, otherwise you have to trawl the fixes to see what changed it though using the mkspecs/features directory should have helped.

                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 Reply Last reply
                                      1
                                      • P Offline
                                        P Offline
                                        paulmasri
                                        wrote on last edited by
                                        #19

                                        This is a documented bug https://bugreports.qt.io/browse/QTBUG-70592 and the fix is in 5.9.7 due out next week. There is no workaround, as far as I am aware.

                                        GrecKoG 1 Reply Last reply
                                        1
                                        • P paulmasri

                                          This is a documented bug https://bugreports.qt.io/browse/QTBUG-70592 and the fix is in 5.9.7 due out next week. There is no workaround, as far as I am aware.

                                          GrecKoG Offline
                                          GrecKoG Offline
                                          GrecKo
                                          Qt Champions 2018
                                          wrote on last edited by
                                          #20

                                          The workaround is to disable the check for xcode versions in mkspecs files, to do this prepend false: before lessThan(QMAKE_XCODE_VERSION in those files :

                                          • mkspecs/features/uikit/default_pre.prf:24
                                          • mkspecs/features/uikit/default_post.prf:42
                                          • mkspecs/features/uikit/bitcode.prf:1

                                          For default_pre.prf, line 24 should then be:
                                          false:lessThan(QMAKE_XCODE_VERSION, "4.3"): \

                                          1 Reply Last reply
                                          1

                                          • Login

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