Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5765] Titanium SDK 5.3.0.GA failed to build on iOS devices

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2018-06-12T02:18:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI, Titanium SDK & CLI
Labelsbuild-error, ios
Reportersujith
AssigneeShak Hossain
Created2018-06-07T11:00:13.000+0000
Updated2018-06-12T02:18:55.000+0000

Description

When building an ad-hoc version of my application, it fails with the following error.

_2018-06-07T10:48:35.919Z | ERROR | An uncaught exception was thrown!

2018-06-07T10:48:35.921Z | ERROR | Cannot read property 'devices' of undefined

2018-06-07T10:48:35.921Z | TRACE | TypeError: Cannot read property 'devices' of undefined

at iOSBuilder. (/Users/innovator/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/iphone/cli/commands/_build.js:298:12)

Cannot read property 'devices' of undefined

at /Users/innovator/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/node_modules/ioslib/index.js:115:12

at /Users/innovator/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/node_modules/ioslib/node_modules/async/lib/async.js:726:13

at /Users/innovator/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/node_modules/ioslib/node_modules/async/lib/async.js:52:16

at done (/Users/innovator/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/node_modules/ioslib/node_modules/async/lib/async.js:241:17)

at /Users/innovator/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/node_modules/ioslib/node_modules/async/lib/async.js:44:16

at /Users/innovator/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/node_modules/ioslib/node_modules/async/lib/async.js:723:17

at /Users/innovator/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/node_modules/ioslib/node_modules/async/lib/async.js:167:37

at /Users/innovator/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/node_modules/ioslib/index.js:85:6

at /Users/innovator/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/node_modules/ioslib/lib/device.js:51:12

_

I tried cleaning everything about Appcelerator and reinstall but no luck. What else can I do? While googling found some fixes, which says to downgrade the Node.js version to 4.4.x (Currently I'm using node version 8.9.1). But when I change the node js to 4.4.x, the Appcelerator throws an error saying "appc requires Node.js >=8.0.0". Please help me to solve this error. +*Please find my environment details below, *+ Operating System: mac os 10.13.4 Studio: Axway Appcelerator Studio, build: 5.0.0.201712081732 Application's Titanium SDK version: 5.3.0.GA Node.js Node.js Version = 8.9.1 npm Version = 5.5.1 Appcelerator CLI Installer = 4.2.13 Core Package = 7.0.3 Titanium CLI CLI Version = 5.1.0 node-appc Version = 0.2.44

Comments

  1. Hans Knöchel 2018-06-07

    Which Xcode do you use? Xcode 8 and later require SDK 6.3.0+ to work with the new Xcode tooling.
  2. Hans Knöchel 2018-06-12

    Resolving for now due to inactivity. If it still occurs with latest tooling (7.1.1.GA and Xcode 9.4), let us know!

JSON Source