Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14683

CLI: Titanium fails to build when only platform-specific app.js is present

    Details

      Description

      problem

      Despite the presence of a platform-specific app.js file, the Titanium CLI will fail to build with the following error if there is no app.js directly in the Resources folder. This behavior seems to affect all supported platforms.

      [ERROR] app.js not found
       
      Ensure the "app.js" file exists in your project's "Resources" directory.
      

      To make it a little more clear, even if Resources/iphone/app.js exists, the error still occurs on iOS builds if Resources/app.js does not, despite the fact that it would be unused.

      expected

      Apps should not require Resources/app.js if they have the appropriate platform-specific app.js for the current build.

      reproduce

      1. Create a new Titanium app
      2. Move the app.js file to the Resources/iphone directory
      3. Build the app for iOS
      4. You should get the error listed above in the problem section

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                tlukasavage Tony Lukasavage
                Reviewer:
                Allen Yeung
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code