2 Replies
      Latest reply on Aug 16, 2019 9:34 AM by KMT
      JGD Level 1 Level 1 (0 points)

        I have building and testing nicely automated for our main product on iOS with Xcodebuild and shell scripts, and I'm now working on bringing up an add-on for our product. But xcodebuild stops partway through testing that, with:

         

        IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /var/folders/...

         

        The diagnostic log isn't telling me much, but I am recovering exit status code 65 from xcodebuild. I can't find a list of what those codes mean, although I can find a lot of people asking about them on the Internet  without getting answers. Is there a published list anywhere?

         

        Thanks in advance,

         

        John

        • Re: Is there a list of exit status codes for xcodebuild?
          JGD Level 1 Level 1 (0 points)

          I found the cause of the problem I was having: the add-on product's testing code was foolishly calling C's exit(0) when it though it had finished. However, this is a very slow way to build a list of exit values: a published list would be very useful.

          • Re: Is there a list of exit status codes for xcodebuild?
            KMT Level 9 Level 9 (14,635 points)

            Quoting man xcodebuild:

             

               Exit Codes

                 xcodebuild exits with codes defined by sysexits(3)*.  It will exit with EX_OK on success.  On failure, it will commonly exit with EX_USAGE if any  options  appear  malformed,  EX_NOINPUT  if  any input files cannot be found, EX_IOERR if any files cannot be read or written, and EX_SOFTWARE if the commands given to xcodebuild fail.  It may exit with other codes in less common scenarios.

             

            Otherwise, looks like the previously published list went missing from the mothership years ago, so...

             

            About 65, see:

            h ttps://circleci.com/blog/xcodebuild-exit-code-65-what-it-is-and-how-to-solve-for-ios-and-macos-builds/

             

            *

            0   /* successful termination */

            64  /* base value for error messages */

            64  /* command line usage error */

            65  /* data format error */

            66  /* cannot open input */

            67  /* addressee unknown */

            68  /* host name unknown */

            69  /* service unavailable */

            70  /* internal software error */

            71  /* system error (e.g., can't fork) */

            72  /* critical OS file missing */

            73  /* can't create (user) output file */

            74  /* input/output error */

            75  /* temp failure; user is invited to retry */

            76  /* remote error in protocol */

            77  /* permission denied */

            78  /* configuration error */

            /* maximum listed value */

             

            h tps://unix.stackexchange.com/questions/110348/how-do-i-get-the-list-of-exit-codes-and-or-return-codes-and-meaning-for-a-comm