Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1554] Can not build my app due to some errors.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2014-06-11T16:50:52.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterSinan Gunay
AssigneeRitu Agrawal
Created2014-05-23T10:17:25.000+0000
Updated2016-03-08T07:38:01.000+0000

Description

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

Attachments

FileDateSize
app.js2014-05-23T18:35:51.000+00001164
app.js2014-05-23T18:35:16.000+00001164

Comments

  1. Ritu Agrawal 2014-05-23

    Please attach the output of the following commands from the terminal to investigate further 1. Titanium info 2. Titanium sdk 3. Titanium config
  2. Sinan Gunay 2014-05-23

  3. Sinan Gunay 2014-05-23

  4. Sinan Gunay 2014-05-23

    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"
  5. Ritu Agrawal 2014-05-23

    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?
  6. Sinan Gunay 2014-05-23

    Please let me know how can I attach the test case? Thanks.
  7. Ritu Agrawal 2014-05-23

    You can go to Button More ==> drop down list (Attach files) and can attach the files.
  8. Sinan Gunay 2014-05-23

    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!
  9. Ritu Agrawal 2014-05-23

    Yes, your application file (app.js) file please.
  10. Sinan Gunay 2014-05-23

    Here it's sir.
  11. Sinan Gunay 2014-05-23

    Sorry, I don't see any file attached to the message. Can you please confirm if you got it or not? Thanks.
  12. Sinan Gunay 2014-05-24

    Hi, Do you have any update for me? Thanks.
  13. Ritu Agrawal 2014-05-27

    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. 3.2.3.GA
  14. Ritu Agrawal 2014-06-10

    Does updating the tiapp.xml file to use 3.2.3 GA helped?
  15. Ritu Agrawal 2014-06-11

    Resolving the ticket as we have not heard back from the reporter and we have not been able to reproduce the issue locally.

JSON Source