8 Replies
      Latest reply on Jun 19, 2018 1:49 PM by theeternalsw0rd
      TheRealTroff Level 1 Level 1 (0 points)

        Hi,

         

        I've installed the Xcode 10 beta, including the command line tools and the MacOSX10.14 SDK, on my machine with an otherwise blank macOS 10.14 beta, but I don't have a /usr/include directory. Is this on purpose, am I missing something or is something broken? This makes it quite difficult to build a lot of open source projects.

        • Re: Missing /usr/include w/ Xcode 10
          john daniel Level 3 Level 3 (220 points)

          TheRealTroff wrote:

           

          I've installed the Xcode 10 beta, including the command line tools and the MacOSX10.14 SDK, on my machine with an otherwise blank macOS 10.14 beta, but I don't have a /usr/include directory. Is this on purpose, am I missing something or is something broken? This makes it quite difficult to build a lot of open source projects.

          The Command Line tools were unavailable for a while. I just tried it and it did install, but I don't have /usr/include either.

           

          You can setup your own build scripts and set the appropriate arch, isysroot, I, and L compiler flags to point to the appropriate places inside the SDK directories. That is really the only option if you are doing any kind of cross-platform work as /usr/include is just for your Mac platform.

          • Re: Missing /usr/include w/ Xcode 10
            theeternalsw0rd Level 1 Level 1 (10 points)

            I've got the same issue. I've reported this as a bug to Apple. I haven't had a response yet.

            • Re: Missing /usr/include w/ Xcode 10
              qtzar Level 1 Level 1 (10 points)

              The comand line tools ARE there in XCode 10 Beta but don't seem to be installed in the /usr folder any more. I had a need to get GIT working and after installed XCode 10 Beta the git command would not work and the prompt to install command line tools would report that they were not available.

               

              However using the following command in terminal sets them up and GIT works as expected again, even though they still don't exist in the /usr folder.

               

              xcode-select -s /Applications/Xcode-beta.app

               

              Hope this helps.

              • Re: Missing /usr/include w/ Xcode 10
                theeternalsw0rd Level 1 Level 1 (10 points)

                From the latest Xcode 10 Beta 2 release notes.

                 

                The Command Line Tools package installs the macOS system headers inside the macOS SDK. Software that compiles with the installed tools will search for macOS headers at the standard include path: /Applications/Xcodebeta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.1 4.sdk/usr/include For legacy software that looks for the macOS headers in the base system under /usr/include, please install the package file located at: /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14. pkg