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

CLI: iOS build fails if your tiapp.xml does not have any modules section.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 3.2.0
    • Component/s: CLI, iOS
    • Environment:

      Description

      If a app is created with no <modules/> section in tiapp.xml the build fails

      Reproduction Steps

      1. Create a new sample app.
      2. open the tiapp.xml and remove <modules/> tag from it and save it.
      3. build for simulator.

      The following error can be observed.

      [ERROR] : Failed to run command "build"
      [ERROR] : TypeError: Cannot call method 'filter' of undefined
      at iOSBuilder.checkIfNeedToRecompile (/Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/iphone/cli/commands/_build.js:1594:45)
      at /Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:548:21
      at /Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:224:13
      at iterate (/Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:131:13)
      at /Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:142:25
      at /Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:226:17
      at /Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:553:34
      at iOSBuilder.readBuildManifest (/Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/iphone/cli/commands/_build.js:1395:2)
      at /Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:548:21
      at /Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:224:13
      ---------------------------------------------
      at run (/Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/node-appc/lib/subprocess.js:59:8)
      at /Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/iphone/cli/lib/detect.js:356:9
      at /Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:508:21
      at /Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:224:13
      at /Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:108:13
      at Array.forEach (native)
      at _each (/Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:32:24)
      at async.each (/Users/sabilrahim/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131127114913/node_modules/async/lib/async.js:107:9)

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              srahim Sabil Rahim
              Reviewer:
              Allen Yeung
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17929
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code