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

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


    • 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:
    • 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



      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.


      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 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.


          Issue Links



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


                • Created:

                  Backbone Issue Sync

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

                    Git Integration