2 Replies
      Latest reply on Jul 17, 2018 4:26 AM by eskimo
      below Level 1 Level 1 (0 points)

        Hello,

         

        am I supposed to be building network_cmds as a mere mortal, or is this "you can look, but you can't touch" code?

         

        Building fails because it can't find the macosx.internal sysroot, and compiling it against the public macos sdk fails because of missing definitions.

         

        At least some of these defitions are in the xnu kernel sources, so is it worth the effort trying to compile this project?

         

        Thanks

         

        Alex

        • Re: Building network_cmds?
          john daniel Level 3 Level 3 (220 points)

          Alex,

          No, you aren't supposed to build any of that. You can look at it and incorporate the code in your own projects with respect to any licensing restrictions. But don't assume that any Apple open source code will, or is supposed to, build outside of Apple.

          • Re: Building network_cmds?
            eskimo Apple Staff Apple Staff (10,015 points)

            so is it worth the effort trying to compile this project?

            What’s your end goal here?  A lot of the tools in network_cmds use APIs of questionable stability, so it’s better to avoid going there if possible.  And depending on your specific goals there may be better options.

            Share and Enjoy

            Quinn “The Eskimo!”
            Apple Developer Relations, Developer Technical Support, Core OS/Hardware
            let myEmail = "eskimo" + "1" + "@apple.com"