Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27490] iOS: Cannot build to iOS with latest 8.2.1 build

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-10-24T13:29:47.000+0000
Affected Version/sRelease 8.2.1
Fix Version/sRelease 8.2.1
ComponentsiOS
LabelsengSchedule
ReporterSatyam Sekhri
AssigneeEwan Harris
Created2019-10-21T23:57:08.000+0000
Updated2019-10-24T13:29:47.000+0000

Description

When trying to build a default classic or alloy project to iOS simulator or device it errors out during with the latest 8.2.1 SDK build. Steps to Reproduce 1. Create a default classic/alloy project 2. Build to iOS Actual Result: An error is shown
2019-10-21T23:38:34.255Z | ERROR  | An uncaught exception was thrown!
xc is not defined
2019-10-21T23:38:34.255Z | ERROR  | xc is not defined
2019-10-21T23:38:34.255Z | TRACE  | ReferenceError: xc is not defined
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simulator.js:237:20
    at Array.forEach (<anonymous>)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simulator.js:231:19
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simulator.js:1879:5
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:473:16
    at replenish (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:1006:25)
    at iterateeCallback (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:995:17)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:969:16
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simulator.js:1873:5
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simctl.js:244:4
---------------------------------------------
    at Object.run (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/node-appc/lib/subprocess.js:60:8)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simctl.js:602:20
    at Object.whilst (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:5227:5)
    at trySimctl (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simctl.js:596:8)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simctl.js:198:4
    at Object.whilst (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:5227:5)
    at Object.list (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simctl.js:193:8)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simulator.js:1835:11
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:3110:16
---------------------------------------------
    at magik (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/utilities.js:51:13)
    at Object.detect (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/xcode.js:171:27)
    at list (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simulator.js:1818:8)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/simulator.js:216:4
    at fireCallbacks (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/xcode.js:178:5)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/xcode.js:629:11
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:3888:9
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:473:16
    at replenish (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:1006:25)
---------------------------------------------
    at Object.run (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/node-appc/lib/subprocess.js:60:8)
    at find (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/node-appc/lib/subprocess.js:97:13)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:4096:9
    at Object.process (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:2344:17)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:2252:19
    at Immediate.<anonymous> (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:119:16)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
---------------------------------------------
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:118:9
    at _insert (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:2250:13)
    at Object.push (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:2303:13)
    at Object.findExecutable (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/node-appc/lib/subprocess.js:114:8)
    at findTeams (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/xcode.js:505:21)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:3880:24
    at replenish (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:1011:17)
    at iterateeCallback (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:995:17)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:969:16
---------------------------------------------
    at Object.run (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/node-appc/lib/subprocess.js:60:8)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/xcode.js:497:22
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:3110:16
    at replenish (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:1011:17)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:1016:9
    at eachLimit$1 (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:3196:24)
    at Object.<anonymous> (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:1046:16)
    at loadXcodeInfo (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/xcode.js:339:11)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:3880:24
---------------------------------------------
    at Object.run (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/node-appc/lib/subprocess.js:60:8)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/xcode.js:302:22
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/env.js:98:4
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:3888:9
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:473:16
    at iterateeCallback (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:992:24)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:969:16
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:3885:13
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/env.js:92:6
---------------------------------------------
    at Object.run (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/node-appc/lib/subprocess.js:60:8)
    at find (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/node-appc/lib/subprocess.js:97:13)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:4096:9
    at Object.process (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:2344:17)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:2252:19
    at Immediate.<anonymous> (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:119:16)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
---------------------------------------------
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:118:9
    at _insert (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:2250:13)
    at Object.push (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/async/dist/async.js:2303:13)
    at Object.findExecutable (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/node-appc/lib/subprocess.js:114:8)
    at xcodeSelect (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/lib/env.js:81:21)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:3880:24
    at replenish (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:1011:17)
    at /Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:1016:9
    at eachOfLimit (/Users/satyamsekhri/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.v20191021132318/node_modules/ioslib/node_modules/async/dist/async.js:1041:24)
Expected Result: The build to iOS simulator and device should be successful.

Comments

  1. Ewan Harris 2019-10-22

    https://github.com/appcelerator/ioslib/pull/103
  2. Ewan Harris 2019-10-22

    I can't repro this, it's down to global sim runtimes so maybe it's something around when people have upgraded in place? I'm trying to install an additional runtime from xcode 11 to see if I can repro it
  3. Ewan Harris 2019-10-22

    [~smohammed] can repro this, I got him to log the simruntime variable and it looks to be down to a super old iOS simruntime being installed (left over from an old xcode version probably)
       { bundlePath:
       
          '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.4.simruntime',
       
         availabilityError:
       
          'The iOS 8.4 simulator runtime is not supported on hosts after macOS 10.14.99.',
       
         buildversion: '12H141',
       
         isAvailable: false,
       
         identifier: 'com.apple.CoreSimulator.SimRuntime.iOS-8-4',
       
         version: '8.4',
       
         name: 'iOS 8.4' }
       
  4. Chris Barber 2019-10-22

    ioslib@1.7.16 published. Need PRs for Ti SDK master/8_2_X.
  5. Chris Barber 2019-10-22

    Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/11292 Ti SDK 8_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/11293
  6. Chris Barber 2019-10-22

    ioslib fix https://github.com/appcelerator/ioslib/pull/104
  7. Satyam Sekhri 2019-10-22

    FR Passed. Build to iOS device and sims successful.
  8. Satyam Sekhri 2019-10-22

    Waiting for master build on Jenkins to pass
  9. Christopher Williams 2019-10-23

    merged to master and 8_2_X
  10. Samir Mohammed 2019-10-24

    Closing ticket. Able to build to ios sims using 8.2.1.v20191023131524 and SDK version 8.3.0.v20191023125529. Test and other information can be found at: Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/11292 Ti SDK 8_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/11293

JSON Source