Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27647] iOS: Cannot read property 'sort' of undefined when building using Xcode 11.3

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2020-01-16T18:36:27.000+0000
Affected Version/sRelease 8.3.0
Fix Version/sRelease 9.0.0
ComponentsiOS
LabelsengSchedule
ReporterEwan Harris
AssigneeChris Barber
Created2019-12-11T17:59:03.000+0000
Updated2020-01-22T13:57:29.000+0000

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

Comments

  1. Chris Barber 2019-12-14

    https://github.com/appcelerator/ioslib/pull/112 Details and test info in the PR.
  2. Andrea Vitale 2019-12-27

    Hi, I updated the ioslib version inside my 8.3.0.GA folder. The version 1.7.20 is now installed. When I try to run an app (with or without specifying simulator UDID) I always get this error:
       [TRACE] [ioslib] No iOS Simulator UDID specified, searching for best match
       [TRACE] [ioslib] Scanning Xcodes: 11.3:11C29
       [TRACE] [ioslib] Scanning Xcode 11.3:11C29 sims: 
       [ERROR] Unable to find an iOS Simulator running iOS 13.2.2.
       
    I also downloaded 13.2 simulators via Xcode but the error is always the same. I'm on macOS Catalina with latest version of Xcode (11.3).
  3. Chris Barber 2020-01-16

    ioslib@1.7.20 published 12/17/2019.
  4. Samir Mohammed 2020-01-22

    *Closing ticket* Fix verified in SDK version 9.0.0.v20200121151830. Test and other information can be found at: https://github.com/appcelerator/ioslib/pull/112

JSON Source