Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] XCode 7 and Qt error

[SOLVED] XCode 7 and Qt error

Scheduled Pinned Locked Moved General and Desktop
11 Posts 7 Posters 21.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.
  • F Offline
    F Offline
    freddy311082
    wrote on 17 Sept 2015, 04:14 last edited by freddy311082
    #1

    Hi Guys... tonight I had upgrade my XCode to the new version (version 7), before that everything was perfect, now i got this error:

    clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk'
    clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk'
    In file included from ../../anclan_kernel/common/Common.cpp:1:
    In file included from ../../anclan_kernel/common/Common.h:4:
    In file included from ../../anclan_kernel/common/common_global.h:4:
    In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qglobal.h:39:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:36:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: fatal error: 'unistd.h' file not found
    #include <unistd.h>
    ^
    In file included from ../../anclan_kernel/common/common_definitions.cpp:1:
    In file included from ../../anclan_kernel/common/common_definitions.h:4:
    In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/QStringBuilder:1:
    In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstringbuilder.h:44:
    In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:41:
    In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qchar.h:37:
    In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qglobal.h:39:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:36:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: fatal error: 'unistd.h' file not found
    #include <unistd.h>
    ^
    In file included from ../../anclan_kernel/common/Utils.cpp:1:
    In file included from ../../anclan_kernel/common/Utils.h:4:
    In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/QtGlobal:1:
    In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qglobal.h:39:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:36:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: fatal error: 'unistd.h' file not found
    #include <unistd.h>
    ^
    1 error generated.
    make[1]: *** [Common.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    1 error generated.
    make[1]: *** [common_definitions.o] Error 1
    1 error generated.
    make[1]: *** [Utils.o] Error 1
    make: *** [sub-common-make_first-ordered] Error 2
    01:09:34: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project anclan_kernel (kit: Desktop Qt 5.5.0 clang 64bit)
    When executing step "Make"

    does anyone know about it ?? because I didn't have this error before upgrade

    regards

    L 1 Reply Last reply 17 Sept 2015, 07:23
    0
    • F freddy311082
      17 Sept 2015, 04:14

      Hi Guys... tonight I had upgrade my XCode to the new version (version 7), before that everything was perfect, now i got this error:

      clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk'
      clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk'
      In file included from ../../anclan_kernel/common/Common.cpp:1:
      In file included from ../../anclan_kernel/common/Common.h:4:
      In file included from ../../anclan_kernel/common/common_global.h:4:
      In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qglobal.h:39:
      In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:36:
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: fatal error: 'unistd.h' file not found
      #include <unistd.h>
      ^
      In file included from ../../anclan_kernel/common/common_definitions.cpp:1:
      In file included from ../../anclan_kernel/common/common_definitions.h:4:
      In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/QStringBuilder:1:
      In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstringbuilder.h:44:
      In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:41:
      In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qchar.h:37:
      In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qglobal.h:39:
      In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:36:
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: fatal error: 'unistd.h' file not found
      #include <unistd.h>
      ^
      In file included from ../../anclan_kernel/common/Utils.cpp:1:
      In file included from ../../anclan_kernel/common/Utils.h:4:
      In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/QtGlobal:1:
      In file included from /Applications/Qt/5.5/clang_64/lib/QtCore.framework/Headers/qglobal.h:39:
      In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef:36:
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: fatal error: 'unistd.h' file not found
      #include <unistd.h>
      ^
      1 error generated.
      make[1]: *** [Common.o] Error 1
      make[1]: *** Waiting for unfinished jobs....
      1 error generated.
      make[1]: *** [common_definitions.o] Error 1
      1 error generated.
      make[1]: *** [Utils.o] Error 1
      make: *** [sub-common-make_first-ordered] Error 2
      01:09:34: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project anclan_kernel (kit: Desktop Qt 5.5.0 clang 64bit)
      When executing step "Make"

      does anyone know about it ?? because I didn't have this error before upgrade

      regards

      L Offline
      L Offline
      Leandro
      wrote on 17 Sept 2015, 07:23 last edited by Leandro
      #2

      @freddy311082 Friend, just add to the .PRO file in the Project dir:

      QMAKE_MAC_SDK = macosx10.11

      QT is trying to use the SDK Version 10.10, but Xcode 7 has the 10.11 version.
      Every time you get this error, do "ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/" in Terminal and change the QMAKE_MAC_SDK variable accordingly.

      F H 2 Replies Last reply 17 Sept 2015, 17:51
      2
      • K Offline
        K Offline
        krekeltronics
        wrote on 17 Sept 2015, 16:19 last edited by
        #3

        nicely done @Leandro, that does it. Cheers!

        1 Reply Last reply
        0
        • L Leandro
          17 Sept 2015, 07:23

          @freddy311082 Friend, just add to the .PRO file in the Project dir:

          QMAKE_MAC_SDK = macosx10.11

          QT is trying to use the SDK Version 10.10, but Xcode 7 has the 10.11 version.
          Every time you get this error, do "ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/" in Terminal and change the QMAKE_MAC_SDK variable accordingly.

          F Offline
          F Offline
          freddy311082
          wrote on 17 Sept 2015, 17:51 last edited by
          #4

          @Leandro
          Well done bro !!! it's work

          thanks.... :)

          1 Reply Last reply
          0
          • L Leandro
            17 Sept 2015, 07:23

            @freddy311082 Friend, just add to the .PRO file in the Project dir:

            QMAKE_MAC_SDK = macosx10.11

            QT is trying to use the SDK Version 10.10, but Xcode 7 has the 10.11 version.
            Every time you get this error, do "ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/" in Terminal and change the QMAKE_MAC_SDK variable accordingly.

            H Offline
            H Offline
            Hercule
            wrote on 20 Sept 2015, 18:44 last edited by
            #5

            @Leandro said:

            ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/

            Great idea! However, I am now stuck with this error:
            :-1: error: Current macosx10.11 SDK version (10.11) is too old. Please upgrade Xcode.

            I am surprised because by Xcode is Version 7.0 (7A220)

            M 1 Reply Last reply 23 Sept 2015, 10:49
            0
            • H Hercule
              20 Sept 2015, 18:44

              @Leandro said:

              ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/

              Great idea! However, I am now stuck with this error:
              :-1: error: Current macosx10.11 SDK version (10.11) is too old. Please upgrade Xcode.

              I am surprised because by Xcode is Version 7.0 (7A220)

              M Offline
              M Offline
              madsdk
              wrote on 23 Sept 2015, 10:49 last edited by
              #6

              @Hercule I'm having the same problem when building for iOS. It solves the problem for building a Mac app, but sadly not for building iOS apps. Does anyone have a solution for that?

              1 Reply Last reply
              0
              • W Offline
                W Offline
                wozza
                wrote on 1 Oct 2015, 22:15 last edited by
                #7

                It seems that when the Xcode update is applied the ios build tools are no longer loaded for creator to use this seems a bigger issue then just setting the SDK version

                W 1 Reply Last reply 1 Oct 2015, 22:22
                0
                • W wozza
                  1 Oct 2015, 22:15

                  It seems that when the Xcode update is applied the ios build tools are no longer loaded for creator to use this seems a bigger issue then just setting the SDK version

                  W Offline
                  W Offline
                  wozza
                  wrote on 1 Oct 2015, 22:22 last edited by
                  #8

                  @wozza Just looking at this and then adding the iphone simulator kit it complains :-1: error: Current macosx10.11 SDK version (10.11) is too old. Please upgrade Xcode. Now if you do ls /Applications/Xcode.app/Contents/Developer/Platforms/ on the terminal you will find multiple sdk kits so how do we then add these kits to the .pro file to support the platform we want to publish too?

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    wozza
                    wrote on 1 Oct 2015, 22:28 last edited by
                    #9

                    @Hercule it seems that if we do QMAKE_MAC_SDK = iphoneos you can then deploy to the iphone

                    F 2 Replies Last reply 5 Dec 2015, 20:23
                    0
                    • W wozza
                      1 Oct 2015, 22:28

                      @Hercule it seems that if we do QMAKE_MAC_SDK = iphoneos you can then deploy to the iphone

                      F Offline
                      F Offline
                      froncer
                      wrote on 5 Dec 2015, 20:23 last edited by froncer 12 May 2015, 20:24
                      #10

                      @wozza But if i do QMAKE_MAC_SDK = iphoneos, the old problem with

                      0: fatal error: 'unistd.h' file not found
                      #include <unistd.h>

                      appears again.

                      1 Reply Last reply
                      0
                      • W wozza
                        1 Oct 2015, 22:28

                        @Hercule it seems that if we do QMAKE_MAC_SDK = iphoneos you can then deploy to the iphone

                        F Offline
                        F Offline
                        froncer
                        wrote on 5 Dec 2015, 21:11 last edited by
                        #11

                        @wozza Found the solution by myself by setting only the version for macosx to 10.11:

                        QMAKE_MAC_SDK.macosx.version = 10.11

                        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