Hello,
We are encountering an issue while building our application with Titanium. I tried to re-install, remove/install titanium and alloy but nothing works for me. I'm pasting the error message below, please see:
/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185
throw e;
^
TypeError: Cannot read property 'length' of undefined
at /Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/cli/commands/_build.js:349:23
at findTargetDevices (/Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/cli/commands/_build.js:189:5)
at callback.options.device-id.validate (/Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/cli/commands/_build.js:343:10)
at CLI.
(/usr/local/lib/node_modules/titanium/lib/cli.js:622:14)
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:551:21
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:227:13
at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:134:13)
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:145:25
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:229:17
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:556:34
---------------------------------------------
at run (/Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/node-appc/lib/subprocess.js:59:8)
at /Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/cli/lib/detect.js:410:9
at /Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:511:21
at /Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:227:13
at /Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:111:13
at Array.forEach (native)
at _each (/Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:32:24)
at async.each (/Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:110:9)
And the command line utility gives the follwing error:
[INFO] Focusing the iOS Simulator
[ERROR] Project failed to build after 2s 934ms
Please attach the output of the following commands from the terminal to investigate further 1. Titanium info 2. Titanium sdk 3. Titanium config
Ajanss-Mac:~ ajansrota$ titanium config app.workspace = "" cli.colors = true cli.completion = false cli.failOnWrongSDK = false cli.httpProxyServer = "" cli.ignoreDirs = "^(\\.svn|_svn|\\.git|\\.hg|\\.?[Cc][Vv][Ss]|\\.bzr|\\$RECYCLE\\.BIN)$" cli.ignoreFiles = "^(\\.gitignore|\\.npmignore|\\.cvsignore|\\.DS_Store|\\._.*|[Tt]humbs.db|\\.vspscc|\\.vssscc|\\.sublime-project|\\.sublime-workspace|\\.project|\\.tmproj)$" cli.logLevel = "trace" cli.progressBars = true cli.prompt = true cli.rejectUnauthorized = true cli.width = 100 paths.commands = [] paths.hooks = [] paths.modules = [] paths.plugins = [] paths.sdks = ["/Users/ajansrota/Library/Application Support/Titanium"] sdk.defaultInstallLocation = "/Users/ajansrota/Library/Application Support/Titanium/" sdk.selected = "3.2.3.GA" user.locale = "en_US"
Thank you for providing the requested information. The setup looks fine. Can you please attach the test case as well so that I can run it and see the issue?
Please let me know how can I attach the test case? Thanks.
You can go to Button More ==> drop down list (Attach files) and can attach the files.
I'm sorry that I was not clear. What files do you want me to upload? My application files or what? Many thanks for the fast response!
Yes, your application file (app.js) file please.
Here it's sir.
Sorry, I don't see any file attached to the message. Can you please confirm if you got it or not? Thanks.
Hi, Do you have any update for me? Thanks.
I would suggest you to update your tiapp.xml file to use 3.2.3 SDK version and see if it helps resolve this issue. It would help us to diagnose this issue further.
Does updating the tiapp.xml file to use 3.2.3 GA helped?
Resolving the ticket as we have not heard back from the reporter and we have not been able to reproduce the issue locally.