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

iOS: Cannot read property 'sort' of undefined when building using Xcode 11.3

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 8.3.0
    • Fix Version/s: Release 9.0.0
    • Component/s: iOS
    • Labels:
    • Environment:

      SDK: 8.3.0.GA
      Xcode: 11.3

    • Sprint:
      2019 Sprint 25, 2020 Sprint 1, 2020 Sprint 2

      Description

      Description

      My machine just updated itself to xcode 11.3 and now I can no longer build without specifying a simulator UDID.

      WORKAROUND

      Specify a simulator udid with the -C flag

      The build errors out with the below

       TypeError: Cannot read property 'sort' of undefined
          at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/8.3.0.GA/node_modules/ioslib/lib/simulator.js:704:13
          at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/8.3.0.GA/node_modules/ioslib/lib/simulator.js:178:12
          at fireCallbacks (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/8.3.0.GA/node_modules/ioslib/lib/xcode.js:181:5)
          at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/8.3.0.GA/node_modules/ioslib/lib/xcode.js:187:11
          at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/8.3.0.GA/node_modules/ioslib/lib/utilities.js:66:17
          at process._tickCallback (internal/process/next_tick.js:61:11)
      

      Steps to reproduce

      1. Build an app to sim without specifying a udid appc run -p ios

      Actual

      Build errors out with above error

      Expected

      No error, sim auto detected

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Ewan Harris
                Tester:
                Samir Mohammed
              • Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration