{ "id": "125457", "key": "TIMOB-16319", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16092", "description": "2014 Sprint 08", "name": "2014 Sprint 08", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "16095", "description": "2014 Sprint 08 Tooling", "name": "2014 Sprint 08 Tooling", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-17T00:19:46.000+0000", "created": "2014-01-27T19:03:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.2.1", "qe-closed-3.3.0", "qe-testadded" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-04-23T11:18:58.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5.Description\r\nIn 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.\r\nIf you enter only a blank space, then it will still default to the minimum.\r\n{code} {code}\r\nHowever if you enter a null value it will stop the build process.\r\n{code}{code}\r\n\r\nh5.Steps To Reproduce\r\n1. Create a project in Studio\r\n2. Open TiApp.xml\r\n3. In the section add the following\r\n{code}{code}\r\n4. Build the project\r\n\r\nh5.Expected Result\r\nStudio should notice there is no value and ignore it, offering the minimum installed iOS SDK as an alternative.\r\n\r\nh5.Actual Result\r\n{code}[ERROR] : TypeError: Cannot read property 'data' of null\r\n at /Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/titanium-sdk/lib/tiappxml.js:315:56\r\n at Object.forEachElement (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/node-appc/lib/xml.js:31:4)\r\n at toJS (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/titanium-sdk/lib/tiappxml.js:304:10)\r\n 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)\r\n at new tiapp (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/titanium-sdk/lib/tiappxml.js:671:19)\r\n 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)\r\n at /usr/local/lib/node_modules/titanium/lib/cli.js:631:28\r\n 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)\r\n at CLI. (/usr/local/lib/node_modules/titanium/lib/cli.js:621:14)\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:551:21\r\n---------------------------------------------\r\n at run (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at /Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/iphone/cli/lib/detect.js:410:9\r\n at /Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/async/lib/async.js:511:21\r\n at /Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/async/lib/async.js:227:13\r\n at /Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/async/lib/async.js:111:13\r\n at Array.forEach (native)\r\n at _each (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/async/lib/async.js:32:24)\r\n at async.each (/Users/tester/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140124163734/node_modules/async/lib/async.js:110:9){code}", "attachment": [], "flagged": false, "summary": "CLI: iOS: Empty min-ios-ver causes errors while building", "creator": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.9.1\r\nAppcelerator Studio, build: 3.2.1.201401241158\r\nTitanium SDK, build: 3.2.1.v20140124163734\r\nCLI: 3.2.1-beta3\r\nAlloy: 1.3.1-beta4\r\nXcode: 5.0.2", "comment": { "comments": [ { "id": "289841", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think this should be handled on the SDK side instead to gracefully handle the empty value for minimum SDK version tag since the CLI build should also not fail when user inserts it in tiapp this way.\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-27T19:12:11.000+0000", "updated": "2014-01-27T19:12:11.000+0000" }, { "id": "300726", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5595", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-11T22:20:16.000+0000", "updated": "2014-04-11T22:20:16.000+0000" }, { "id": "302165", "author": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified as FIXED using :\r\nMac :10.9.2\r\nStudio - 3.3.0.201404211130\r\nSDK - 3.3.0.v20140422163054\r\nacs-1.0.14\r\nalloy-1.4.0-dev\r\nnpm-1.3.2\r\ntitanium-3.3.0-dev\r\ntitanium-code-processor-1.1.1-beta1\r\nXcode :5.1.1\r\n\r\nNo error has been noticed with Empty min-ios-ver while building.", "updateAuthor": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-23T11:18:12.000+0000", "updated": "2014-04-23T11:18:12.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }