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

CLI: iOS: Empty min-ios-ver causes errors while building

    Details

      Description

      Description

      In the TiApp.xml, if you set the minimum iOS version lower than an installed version then it will default to the lowest you have installed.
      If you enter only a blank space, then it will still default to the minimum.

      <min-ios-ver> </min-ios-ver>

      However if you enter a null value it will stop the build process.

      <min-ios-ver></min-ios-ver>

      Steps To Reproduce

      1. Create a project in Studio
      2. Open TiApp.xml
      3. In the <ios> section add the following

      <min-ios-ver></min-ios-ver>

      4. Build the project

      Expected Result

      Studio should notice there is no value and ignore it, offering the minimum installed iOS SDK as an alternative.

      Actual Result

      [ERROR] :  TypeError: Cannot read property 'data' of null
          at /Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/titanium-sdk/lib/tiappxml.js:315:56
          at Object.forEachElement (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/node-appc/lib/xml.js:31:4)
          at toJS (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/titanium-sdk/lib/tiappxml.js:304:10)
          at Object.defineProperty.value (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/titanium-sdk/lib/tiappxml.js:599:4)
          at new tiapp (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/titanium-sdk/lib/tiappxml.js:671:19)
          at conf.options.appc.util.mix.project-dir.callback (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/cli/commands/build.js:98:34)
          at /usr/local/lib/node_modules/titanium/lib/cli.js:631:28
          at conf.options.appc.util.mix.project-dir.validate (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/cli/commands/build.js:157:9)
          at CLI.<anonymous> (/usr/local/lib/node_modules/titanium/lib/cli.js:621:14)
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:551:21
      ---------------------------------------------
          at run (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/node-appc/lib/subprocess.js:59:8)
          at /Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/iphone/cli/lib/detect.js:410:9
          at /Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/async/lib/async.js:511:21
          at /Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/async/lib/async.js:227:13
          at /Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/async/lib/async.js:111:13
          at Array.forEach (native)
          at _each (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/async/lib/async.js:32:24)
          at async.each (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/async/lib/async.js:110:9)

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              sdowse Samuel Dowse
              Reviewer:
              Sabil Rahim
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration