Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Made the mistake of updating Xcode
Forum Updated to NodeBB v4.3 + New Features

Made the mistake of updating Xcode

Scheduled Pinned Locked Moved Solved Installation and Deployment
12 Posts 9 Posters 5.5k Views 1 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.
  • H Offline
    H Offline
    Hoyt
    wrote on last edited by
    #3

    Patrik,

    I added "QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13" to my .pro file and I still receive the same error.

    Hoyt

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Shadev
      wrote on last edited by
      #4

      I just had the same problem. Clean build did not help, had to do complete wipe = delete the build directory and then rebuild get rid of this error.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hoyt
        wrote on last edited by
        #5

        I just deleted my build directory and I still have the error when I recompile. I also tried to compile an example project and have the same error.

        Hoyt

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hoyt
          wrote on last edited by
          #6

          I just reverted back to an older version of Xcode. This solved my problem. Not a very good solution, but I am up and running again.

          Hoyt

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JyrkiYliNokari
            wrote on last edited by
            #7

            Same problem here. Tried grepping the whole /opt/Qt/5.9 hierarchy against MacOSX10.12 but nothing. The -spec is macosx and ../mkspec hierarchy seems to set things right.
            I solved this by adding a symbolic link macosx10.12 -> macosx
            (Sorry I don't remember the actual file- and directorynames as I do not have my mac on hand)

            Can someone point me to from where the MacOSX10.12 comes from -- apparently runtime detected

            kshegunovK 1 Reply Last reply
            0
            • J JyrkiYliNokari

              Same problem here. Tried grepping the whole /opt/Qt/5.9 hierarchy against MacOSX10.12 but nothing. The -spec is macosx and ../mkspec hierarchy seems to set things right.
              I solved this by adding a symbolic link macosx10.12 -> macosx
              (Sorry I don't remember the actual file- and directorynames as I do not have my mac on hand)

              Can someone point me to from where the MacOSX10.12 comes from -- apparently runtime detected

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by
              #8

              Have a look at the comments of this ticket:
              https://bugreports.qt.io/browse/QTBUG-63323

              I think it'd help.

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              0
              • B Offline
                B Offline
                Bofei
                wrote on last edited by
                #9

                Adding this line :
                QMAKE_MAC_SDK = macosx10.13
                in the qdevice.pri file (/clang_64/mkspecs of QT).
                Reference: https://groups.google.com/forum/#!topic/golden-cheetah-developers/JQbQDuJHl70

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  cmmin
                  wrote on last edited by
                  #10

                  Hello, just had exactly the same problem. What worked for me was to delete all the build directory and recompile everything.

                  Hope this helps others.

                  1 Reply Last reply
                  1
                  • RochusR Offline
                    RochusR Offline
                    Rochus
                    wrote on last edited by
                    #11

                    Found the following with Qt5.9.1 on OS X 10.11.6: QMAKE_MAC_SDK is only useful für 32bit builds; when building for 64bit instead add to the pro file:
                    INCLUDEPATH += /usr/include
                    QMAKE_LFLAGS += -F/System/Library/Frameworks -L/usr/lib
                    The first line is necessary because of TargetConditionals.h.
                    The second line is necessary because of DiskArbitration framework and c++ library not found. After these tricks the 64bit application compiles and runs.

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      bryanmeyer
                      wrote on last edited by
                      #12

                      This bug report indeed was helpful:
                      https://bugreports.qt.io/browse/QTBUG-63323

                      Specifically, Thiago indicated to:

                      • Remove .qmake.cache, .qmake.stash and all other cache files and then try again, starting from configure.
                      • If you updated Xcode, then the path to the headers changed and qmake needs to know to search again for them.

                      In other words, "Clean Project" or "Rebuild Project" is not enough. You need to either delete every single (hidden) file from the build directories or more easily just trash the build directories and then rebuild.

                      You'll then get the key message:
                      Info: creating stash file /Users/XXX/Qtprojects/build-TestCompileErrors-Desktop_Qt_5_11_1_clang_64bit-Debug/.qmake.stash

                      And your project will run!

                      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