Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12722] CLI: Cannot build Alloy app from clean state

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-11T08:25:35.000+0000
Affected Version/sRelease 3.0.0, Release 3.0.1, Release 3.0.2
Fix Version/sRelease 3.1.0, 2013 Sprint 05 JS, 2013 Sprint 05
ComponentsCLI
LabelsSupportTeam, cli-review, qe-closed-3.1.0
ReporterEduardo Gomez
AssigneeChris Barber
Created2013-02-13T18:39:21.000+0000
Updated2014-06-19T12:43:33.000+0000

Description

Comments

  1. Chris Barber 2013-02-13

    I'm unable to reproduce. Please run the build with --log-level trace.
  2. Eduardo Gomez 2013-02-14

  3. Chris Barber 2013-02-14

    I'm confused. The gist says you are using CLI version 3.0.23 and Titanium SDK version 3.1.0.v20130114171802, yet the snippet on this ticket says 3.0.24-cr and SDK 3.0.2.v20130207164659. I'm not concerned with the older 3.1.0.v20130114171802 SDK because that is too old. Are you able to reproduce this with the 3.0.2 RC?
  4. Eduardo Gomez 2013-02-14

    The snippet with 3.0.24-cr and SDK 3.0.2.v20130207164659 is customer's output. Regarding 3.0.2.RC, I'm not able to reproduce this issue, however ended up with a simulator error. Log: https://gist.github.com/egomez99/38c1f152369f5263a122/raw/d6af385e1128118db0fd75843cf847fe3f93d8aa/Log+level+Trace
  5. Chris Barber 2013-02-14

    Can you get me a list of all files and directories in the Resources directory? I have a hunch...
  6. Eduardo Gomez 2013-02-14

    Here you go:
       egomezMBP:AppAlloy egomez$ find Resources/
       Resources/
       Resources//alloy
       Resources//alloy/backbone.js
       Resources//alloy/CFG.js
       Resources//alloy/controllers
       Resources//alloy/controllers/BaseController.js
       Resources//alloy/controllers/index.js
       Resources//alloy/sync
       Resources//alloy/sync/localStorage.js
       Resources//alloy/sync/properties.js
       Resources//alloy/sync/sql.js
       Resources//alloy/sync/sql_new.js
       Resources//alloy/sync/util.js
       Resources//alloy/underscore.js
       Resources//alloy/widgets
       Resources//alloy.js
       Resources//android
       Resources//android/appicon.png
       Resources//android/default.png
       Resources//android/images
       Resources//android/images/res-long-land-hdpi
       Resources//android/images/res-long-land-hdpi/default.png
       Resources//android/images/res-long-land-ldpi
       Resources//android/images/res-long-land-ldpi/default.png
       Resources//android/images/res-long-port-hdpi
       Resources//android/images/res-long-port-hdpi/default.png
       Resources//android/images/res-long-port-ldpi
       Resources//android/images/res-long-port-ldpi/default.png
       Resources//android/images/res-notlong-land-hdpi
       Resources//android/images/res-notlong-land-hdpi/default.png
       Resources//android/images/res-notlong-land-ldpi
       Resources//android/images/res-notlong-land-ldpi/default.png
       Resources//android/images/res-notlong-land-mdpi
       Resources//android/images/res-notlong-land-mdpi/default.png
       Resources//android/images/res-notlong-port-hdpi
       Resources//android/images/res-notlong-port-hdpi/default.png
       Resources//android/images/res-notlong-port-ldpi
       Resources//android/images/res-notlong-port-ldpi/default.png
       Resources//android/images/res-notlong-port-mdpi
       Resources//android/images/res-notlong-port-mdpi/default.png
       Resources//android/MarketplaceArtwork.png
       Resources//app.js
       Resources//iphone
       Resources//iphone/appicon-72.png
       Resources//iphone/appicon-72@2x.png
       Resources//iphone/appicon.png
       Resources//iphone/appicon@2x.png
       Resources//iphone/Default-568h@2x.png
       Resources//iphone/Default-Landscape.png
       Resources//iphone/Default-Landscape@2x.png
       Resources//iphone/Default-Portrait.png
       Resources//iphone/Default-Portrait@2x.png
       Resources//iphone/Default.png
       Resources//iphone/Default@2x.png
       Resources//iphone/Icon-Small-50.png
       Resources//iphone/Icon-Small.png
       Resources//iphone/Icon-Small@2x.png
       Resources//iphone/iTunesArtwork
       Resources//mobileweb
       Resources//mobileweb/appicon.png
       Resources//mobileweb/apple_startup_images
       Resources//mobileweb/apple_startup_images/Default-Landscape.jpg
       Resources//mobileweb/apple_startup_images/Default-Landscape.png
       Resources//mobileweb/apple_startup_images/Default-Portrait.jpg
       Resources//mobileweb/apple_startup_images/Default-Portrait.png
       Resources//mobileweb/apple_startup_images/Default.jpg
       Resources//mobileweb/apple_startup_images/Default.png
       Resources//mobileweb/apple_startup_images/README
       Resources//mobileweb/splash
       Resources//mobileweb/splash/appc.png
       Resources//mobileweb/splash/README
       Resources//mobileweb/splash/splash.css
       Resources//mobileweb/splash/splash.html
       Resources//mobileweb/splash/titanium.png
       
  7. Chris Barber 2013-02-14

    Hmm, looks good. Can you send me the project? Maybe I can reproduce it. BTW, you can use the "find" command to list a directory recursively: "find /path/to/project/Resources" :)
  8. Eduardo Gomez 2013-02-14

    Jira maximum upload size is 10MB. I've sent you the project by email.
  9. Chris Barber 2013-02-15

    Error confirmed. Investigating. Stay tuned!
  10. Chris Barber 2013-02-15

    I was able to reproduce this error, but after resetting the iOS Simulator, it appears to be working now, even for subsequent builds.
  11. Tony Lukasavage 2013-02-20

    More than one dev seems to have experienced this so far. Here's the Alloy google group discussion since last night on the topic: https://groups.google.com/forum/?fromgroups=#!topic/appc-ti-alloy/1BE079mOQyI All seem to note that changing the SDK from 3.0.1 to 3.0.2 seems to be where the error occurs. I think the Alloy version is likely irrelevant as this error is shown before Alloy's commands are even executed if I'm not mistaken.
  12. Eduardo Gomez 2013-02-21

    Still reproducible on 3.0.2.GA Logs: https://gist.github.com/egomez99/5c50fd674dccc099c406
  13. Chris Barber 2013-02-21

    @Eduardo, you are building with an old Titanium SDK 3.1.0.v20130114171802. You must select a newer SDK such as 3.0.2.GA by running:
        ti sdk select 3.0.2.GA
        
  14. Eduardo Gomez 2013-02-21

    Done. Logs: https://gist.github.com/egomez99/c1fa9af2c8c51ac02c23
  15. Chris Barber 2013-02-21

    @Eduardo, it seems your log has been truncated. Can you upload a file containing the text?
  16. Eduardo Gomez 2013-02-21

    Yes, you can either click on that gist "View the Full File" or look here: https://gist.github.com/egomez99/c1fa9af2c8c51ac02c23/raw/b6152f8b3ffd70b0d1e25ad6e191a80b21bdc652/gistfile1.txt
  17. Chris Barber 2013-03-03

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3929
  18. Olga Romero 2013-04-22

    Tested and verified fix with: Titanium Studio, build: 3.1.0.201304171607 SDK, build: 3.1.0.GA CLI: 3.1.0 Mac osx 10.8.3 Mountain Lion

JSON Source