Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25872

iOS: Log-server-port Build Error Masks Real Error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: Release 7.1.0, Release 7.0.2
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:
    • Story Points:
      8
    • Sprint:
      2018 Sprint 11 SDK, 2018 Sprint 12 SDK, 2018 Sprint 13 SDK, 2018 Sprint 14 SDK, 2018 Sprint 15 SDK, 2018 Sprint 16 SDK

      Description

      Description

      When building an iOS app and there is an issue connecting to the iOS log-server, it always output "Another process is currently bound to port xxxxx" even if there is another server connection issue such as the port not existing.

      Workaround

      Figure out the real issue by logging the actual error within the sdk itself (at ~/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/iphone/cli/commands/_build.js in the determineLogServerPort function).

      Steps to Reproduce

      1. Create a different type of error with the server. For example, my /etc/hosts file did not have an entry for 127.0.0.1 localhost, so the actual node error was 'ENOTFOUND'.
      2. Create a new titanium app with `appc ti new`.
      3. Build with appc ti build -p ios

      Actual Result

      Build errors out with following text:

          [ERROR] Another process is currently bound to port 27973
          [ERROR] Set a unique <log-server-port> between 1024 and 65535 in the <ios> section of the tiapp.xml
      

      Expected Result

      More detailed error. I.E. Something like:

      Failed to create/connect to log server port with error "[error given by node net package]".

      Followed by suggested solution. For example if the node error was EADDRINUSE, then you could still use the existing error message. But if it's another error, log accordingly so the user has the best information for solving the issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                emilyafeder@gmail.com Emily Feder
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6244
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration